If you mean an application shutdown and restart, then
Application.Restart() can do the job.
If you mean shutdown or restart the machine, I'm sure there's a way to
do it through System.Management, but a more direct route is the
InitiateSystemShutdown/Ex, called via P/Invoke - http://pinvoke.net has
the right declaration.