Oct 26 2021 02:06 PM
When scripting in PowerShell, I find it necessary to start a process inside a package and wait for it to finish before continuing on.
The Invoke-CommandInDesktopPackage returns immediately with no output upon successful launching of the command. It would be helpful to have a new -Wait parameter on the cmdlet to request waiting, or to return an object that could be used (such as the new process object) for this purpose.
Oct 27 2021 10:12 PM
Hi @TIMOTHY MANGAN,
Thank you for the feedback. I'd like to ask how you would like to use this PowerShell cmdlet:
Thank you,
Roy MacLachlan
Oct 28 2021 05:47 AM - edited Oct 28 2021 05:49 AM
Waiting is the minimum requirement, but having access to the exit code of the command is desired. My preference is to just wait rather than loop on a handle. But there might be others that want the full control to monitor and take parallel action I suppose.
The use is a substitution for starting a process. I have found it necessary to use this method to get cmd scripts to run inside of the container and I need this command to complete prior to an additional action. As I don't have control over the contents of the cmd script, I cannot add the additional action there.
Nov 16 2021 01:58 PM
Thank you @TIMOTHY MANGAN,
I have created Deliverable 37066629 for this idea.
Nov 16 2021 04:43 PM