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 Desktop...
Power Automate
Answered

Power Automate Desktop execute program and pass parameters question

(0) ShareShare
ReportReport
Posted on by 260

I am trying to set up a desktop flow that I can call from a cloud flow.  What I want that desktop flow to do is pretty simple:

 

  • Run a program
  • Pass the prograam a string parameter

I am not certain I am doing it correctly.

I use Windows Task Manager to run several tasks, all of which launch the same program but each task uses a different parameter string.  Those all work fine, but instead of ONLY running those tasks at fixed intervals, I also need to run them when a flow creates new data that those tasks deal with via a utility.  

 

In the task action, the value is

 

"C:\Program Files (x86)\<directory>\<programname>.exe"  and the arugment is

Item to be processed

The latter has no quote marks, single or double.

For the run application step

 

  1. Should I include the "" marks around the patch and program name or omit them or use single '?
  2. Should the argumet string (parameter) be enclosded in " or ' or have none?

The desktop flow "seems" to run but I am unable to tell for sure.

Long time cloud flow developer but new to desktop.

 

Thanks in advance.

I have the same question (0)
  • lmheimendinger Profile Picture
    260 on at

    I have solved half of this problem by simply browsing to the program location (Duh ddn't know the folder icon would do this).  I then created a cloud flow and called the desktop flow from it.  It now runs for about a minute, which is what I expect, but I can find no evidence on the servr that it actually did run. I have simplified the parameter into a string with no spaces, but whether I enclose it in " or ' or neither, the results seem to be the same.

    When I monitor the flow, that step really doesn't tell me much.  And I no longer see a command window open on the server.  Not a lot of documentation about run application action for desktop flows....

     

  • Verified answer
    lmheimendinger Profile Picture
    260 on at

    Problem solved.  The path is set from browsing, so no ' or "".

    The argument is just a string, no ' or "

     

    When I executed the desktop flow from a cloud flow, I could see nothing on the server session.

     

    However, when I manually run the desktop flow, I see the cmd window open and do exactly what I am expecting.

  • LucianoGomesBR Profile Picture
    on at

    I had the same issue to open excel files with spaces in their names so I solved that by using triple quotes.

    Example:

    LucianoGomesBR_0-1667913277107.png

     

  • lmheimendinger Profile Picture
    260 on at

    good to know! thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard