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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Basic.....
Power Automate
Unanswered

Power Automate Basic...How to launch and run a desktop flow from a Batch or Command File?

(0) ShareShare
ReportReport
Posted on by 4

Need the ability to use the free version of Power Automate and have it lauched from either a .bat or .cmd file and start a desktop flow automatically without user intervention.... CAN THIS BE DONE?

 

(with out paying $100 a month )

I have the same question (0)
  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    I don't think so.

  • VJR Profile Picture
    7,635 on at

    There are multiple suggestions on this topic in the Ideas section. You can search and upvote them.

  • PAG Profile Picture
    154 on at

    Hello @LanceKemp 

    Yes, this is already possible. Here is a working example: https://power.automate.gallery/run-flow-from-command-line-prompt-or-windows-task-scheduler 

  • LanceKemp Profile Picture
    4 on at

    Resolver 1-

     

    I appreciate the help, but, I'm new to this and I can see you can run a "ping" command from a task or cmd file.  but I am not sure how these steps would work for me.  I am trying to launch a premade flow called "Totalizer Login" that works from within Power Automate.  But I can't seem to get Power Automate started and then automatically run the flow from the Windows Startup menu or even from a command prompt.  Once Power Automate starts from a Batch, or CMD file, how do you force it to run an existing flow.?

  • PAG Profile Picture
    154 on at

    Hello,

    Sure, I'll explain. Add this action as the first action to your flow "Totalizer Login":

    WAIT (System.WaitForProcess.ProcessToStart ProcessName: $'''PING''')

     Then run the flow. Flow will not complete, it will wait instead.

    Next, use command prompt to complete the flow, open command prompt and type (you could also run this from a .bat file):

    ping localhost -n 1 > NUL

    Your flow will now complete.

    You can improve this solution by adding an infinite loop to the flow (see my example link).

  • Alphadrag Profile Picture
    164 on at

    Hi, I have a question regarding this issue. I have this whole chunk of code in PAD where I have to run everyday. So I plan to put it inside the windows task scheduler. However, just from your code, may I ask

    1) what is the purpose of the label there

    2) where do i insert this inside my pad desktop flow?

     

    This image shows how my flow starts and what i tried and there is a total of 1219 Actions. I have yet to tried if it works as i have to wait till tomorrow before seeing, but please tell me if i am doing it correctly or wrongly:

    Alphadrag_1-1657079176358.png

     

     

  • PAG Profile Picture
    154 on at

    Hello @Alphadrag 

    1) what is the purpose of the label there

    The purpose is to create an endless loop. Without the label, your flow would just run once.

     

    2) where do i insert this inside my pad desktop flow?

    Insert "LABEL Restart" at the top, before "WAIT". Insert "GOTO Restart" as the last action in your flow, where the flow ends.

  • Alphadrag Profile Picture
    164 on at

    Thank you for your reply. However, I have a question here:

     

    If my power automate desktop app is not open, would the task scheduler still work and run that particular desktop flow named "Backup_Tracking_RPA"? or how does it exactly work? Because ultimately I want this flow to be run daily using task scheduler, without having the need for me to open up the application as sometimes I won't be around to open the application and run the flow. 

  • PAG Profile Picture
    154 on at

    The flow will not run if it have not been started beforehand.

    You might want to use the new feature "Run through an external link", then you don't need to start the flow beforehand. I've updated the example at: https://power.automate.gallery/run-flow-from-command-line-prompt-or-windows-task-scheduler 

  • Alphadrag Profile Picture
    164 on at

    But that is a premium feature correct? Which i do not have. So what i need to do is just start running the flow before hand correct? and it does not matter if i close the app after running the flow as it will continue to run unless stopped is it?

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard