I would try "Get Window" (for the script window) and then "Wait for Window Content" on the new script window, if you are able to implement a text out at the end of your script to show something unique like 'Exit Code 0' to act as a visual handshake for the flow to see.
Hi @heliox
Multiple ways to achieve it. One of them is as below.
You can use Wait but in a different way.
Can you add an output to the .bat or python script such that it writes something to a text file after its work is done? Eg: "Process complete"
If so, then then after calling the script from PAD, you can add a loop such that it waits for every 5 or 10 secs to check if there is some text written in the text file. If not found then continue the loop. If found then the job is done. Need to add a counter for the "number of retry attempts" that the loop will continue else there are chances that it may go in an infinite loop.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.