I can launch a process and get the PID. I can then later requestTermination with that PID.
I however I want to "wait" for the process to terminate and I need the ProcessHandle. I can get the ProcessHandle reference immediately after the launch but since it is a reference I cannot hold on to it for later use in a different method.
Is there any way to preserve or retrieve the ProcessHandle for later use?