Run PowerShell
Run a PowerShell script (inline) or a .ps1 file and capture its output.
Programs & ProcessesRunPowerShell仅限 Windows
概述
Run PowerShell 是 AutoFlowRPA 中 Programs & Processes 类别下的无代码自动化步骤。 当工作流执行到此处时,它会在单个步骤中完成其操作。 您可以配置 4 个参数,精确控制其行为方式。 此步骤在 Windows 上运行。 它是可在可视化编辑器中拖入工作流的 340 个命令之一,无需编写脚本。
功能说明
Run a PowerShell script (inline) or a .ps1 file and capture its output.
参数
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| PowerShell script | multiline | 可选 | Inline PowerShell. Ignored if a .ps1 file is given below. 示例: Get-Date 支持变量 | |
| Script file (.ps1) | file | 可选 | Optional. If set, this file is run instead of the inline script. 示例: C:/scripts/task.ps1 支持变量 | |
| Arguments | string | 可选 | Passed to the .ps1 file (only used with a script file). 支持变量 | |
| Store stdout in | variable | 可选 | 示例: output |
如何使用 Run PowerShell
- 1
打开 AutoFlowRPA,将 Run PowerShell 命令从 Programs & Processes 分组拖放到画布上。
- 2
在侧边面板中设置其参数——Run PowerShell 有 4 个可配置字段。
- 3
将它连入你的工作流并点击运行。一切都在你的本机上本地执行。
常见问题
Run PowerShell 命令有什么作用?
Run a PowerShell script (inline) or a .ps1 file and capture its output.
Run PowerShell 命令属于哪个分组?
Run PowerShell 属于 Programs & Processes 分组。AutoFlowRPA 附带 340+ 个现成命令,无需代码即可组合使用。
Run PowerShell 命令需要任何参数吗?
需要——Run PowerShell 有 4 个可配置字段,均可在可视化节点编辑器中编辑。