web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

power shell action

(1) ShareShare
ReportReport
Posted on by 2
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.
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,378 Super User 2025 Season 2 on at
    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.

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 392 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 205 Most Valuable Professional

Last 30 days Overall leaderboard