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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (957)