I want to use the "Run Script with PowerShell" action in PowerAutomate Desktop. I want to use the variable I created with PAD in the Run PowerShell action, but I don't know how to pass it. Copilot is taught to fill in the parameters section of the action's properties window, but it only finds a place to write a script. Please let me know if you have any hints.
Like this: "%VariableName%"
So double quotes and the variable reference.
This example opens blank word document and writes the NewVar -variable in to the document.
Or in Power Fx enabled flow: "${NewVar}"
You can just have the double quotes ready and put cursor inside them and use the PADs variable picker so it gives you the right way to refer to the variable.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.