Showing results for 
Search instead for 
Did you mean: 
New Member

Non-blocking Powershell script inside Power Automate flow

I have a very simple Powershell script inside a Power Automate Desktop flow. The script starts a desktop application (just an mstsc command to open a remote desktop connection). So far so good. My problem is how to run the script as non-blocking, or maybe how to branch the flow and run another branch in parallel (if this is even possible), so I can continue running further steps of the flow, where I grab objects inside the open application window to execute certain tasks. My flow doesn't run beyond the Powershell script step because the application is still running so the flow stays running that step forever. As soon as I close the application window, the flow execution continues. Any ideas?


Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,219)