Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Want to Run Power automate cloud flows with Powershell scripts

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community,

I want to run my Power Automate Instant cloud flows through Powershell scripts.

I found some cmdlets from documentation Microsoft.PowerApps.Administration.PowerShell Module | Microsoft Docs

I am able to list out flows which are present with my Power Automate account. I want to run them but I don't found any cmdlets for running them from Powershell.

 P.S. I used Enable-AdminFlow -EnvironmentName   for starting them, thinking that it would run the flow. 😞

Can anybody help??

Thanks

  • Verified answer
    EricRegnier Profile Picture
    8,714 Most Valuable Professional on at
    Re: Want to Run Power automate cloud flows with Powershell scripts

    Hi @parulbh, also trying to do this from PowerShell or Power Automate. It's not possible as of yet (unless you have a http trigger). Just submitted the idea, you should vote! https://ideas.powerapps.com/d365community/idea/e881c689-5921-ee11-a81c-000d3a0f0379  

  • parulbh Profile Picture
    Microsoft Employee on at
    Re: Want to Run Power automate cloud flows with Powershell scripts

    Hi @eric-cheng  Thanks for response.

    I want to run all Cloud Instant Flows present one by one by triggering them from a powershell script. There are multiple cloud flows present . I want to trigger them once with one request.

     My Scenario: 

    1. Get List of flows with help of powershell Cmdlet: Get-AdminFlow
    2. Send a Http request from powershell containing  EnvId and FlowNames .(List of Flows)
    3. Filter out Flowname and EnvID
    4. For each FlowName
    •       Get a Cloud Instant Flow with this FlowName
    •        Trigger this Cloud Instant Flow and store run results.

     

     

  • eric-cheng Profile Picture
    5,171 on at
    Re: Want to Run Power automate cloud flows with Powershell scripts

    Hi @parulbh ,

     

    Not sure if any of the admin cmdlets in your link will allow you to start a flow but you could refactor your flow to a HTTP trigger and use PowerShell to make a REST call to your API.  Here is a guide.  

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow