Process.Start("shutdown.exe -s"); //shutdown
Process.Start("shutdown.exe -r"); //shutdown and restart
Process.Start("shutdown.exe -h"); //hibernate
Process.Start("shutdown.exe -l"); //logoff
Process.Start("shutdown.exe -p"); //turn off local computer with no time-out warning