System.Diagnostics.Process.Start(@"cmd.exe", String.Format(@"/C {0} > {1}", "shutdown -r -f -t 0", "tmpFileName"));