C# 关机
System.Diagnostics.Process bootProcess = new System.Diagnostics.Process();
bootProcess.StartInfo.FileName = "shutdown";
bootProcess.StartInfo.Arguments = "/s /t 30";
bootProcess.Start();