Hi, I’m working on an automation scenario where Power Automate Desktop (PAD) handles actions such as opening files, updating a value, refreshing them, and saving/closing.
At specific points, I want PAD to call a Python script that:
- reads certain values from those files,
- performs some logic or checks,
- then returns a simple pass/fail or similar result back to PAD
so that PAD can decide whether to continue or stop the automation.
As I'm new to this, I want to understand:
- What is the best method for PAD to run Python and capture the output (e.g., command line, output files, exit codes)?
- Are there any limitations around PAD interacting with files while Python reads them?
- Has anyone implemented a flow where PAD handles the file interactions and Python handles the logic/verification?
Just looking for guidance on whether this type of PAD + Python handoff is technically feasible and stable.
Thanks in advance!

Report
All responses (
Answers (