Hi,
I have a desktop flow in which I need to launch a browser under a different Windows user than the one currently logged in on the server. To achieve this, I use the Run PowerShell script action in Power Automate Desktop.
The PowerShell “Run As” script itself is very simple, and it works correctly — the browser opens under the intended user as expected. However, the flow does not proceed past the Run PowerShell script action. It remains stuck on that step, even though the browser has already opened successfully. The only way to make the flow continue is to close the browser window manually; once the browser is closed, the flow immediately moves on to the next action.
Based on this behavior, I suspect the issue lies within Power Automate Desktop rather than the script itself, as the exact same script executes perfectly when run directly inside the PowerShell console.


Report
All responses (
Answers (