With C# you can stop and start windows services (if the app has enough privilegies). Look at this sample:
http://www.csharp-examples.net/restart-windows-service/
But to ensure the work is done, your app must be a Windows service also I think.
Hope this helps!
Luis Alberto Manero, Geograma.com