Can I run two commands simultaneously?
I have a deployment package that runs one PowerShell command and one CMD command. The commands are independent of each other and I want to know if I can run the second command while the first command is still running.
The PS command can take 2 - 30 minutes to run and the CMD command opens up a program to monitor the PS command while it's running. Currently, the monitoring program doesn't open up until the PS command is done, which doesn't help. The CMD command also doesn't stop "running" until I close the monitoring program which I'd rather not have happen either.
What I'd prefer is to:
- Run the CMD command to open the program I need open.
- Once the command executes, Step 1 should be considered completed successfully, even though the program window is still open.
- Step 2 (PS) should then execute to actually start the process going.
- The Deployment will be considered complete once the PS command is finished running.
Can that be done?