If the Supervisor program is the one that runs the processes, you will have full control over these child processes. You can easily kill / launch them as needed. Use Process as needed.
using System.Diagnostics; Process p1 = new Process(); Process p2 = new Process(); Process p3 = new Process(); p1.StartInfo.FileName = "notepad.exe"; p2.StartInfo.FileName = "notepad.exe"; p3.StartInfo.FileName = "notepad.exe";
If you want a superuser to have access to this process, why not let them just do it using a graphical interface? If there is no GUI, how do they run the program? Is it started via cmd?
Copied from my comment below:
If the user wants to be able to kill the process directly from the task manager, he can use the application tab to select the correct process (you will need to give him a unique window title), then they can right-click> Go Process and kill from there.
source share