Open command session
Start a console program such as cmd.exe or powershell.exe and keep it open, so later steps can write to it and read its output.
Command in the Application toolkit · id ooa.application/open_session · 6 inputs, 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Program | String | No | cmd.exe | Console program to run: cmd.exe, powershell.exe or any program that reads its standard input. |
| Arguments | List | No | Arguments, one list item each. For powershell.exe or pwsh with none, it reads commands from this session (-NoLogo -NoProfile -Command -). | |
| Working folder | File | No | Folder to start in; the workspace when empty. | |
| Output encoding | String | No | console | Text encoding of what is written and read: console (the code page console programs use here), utf-8 (any language; the program runs in a UTF-8 console, but cmd.exe itself can then only take ASCII typed text), or a name such as cp850. |
| Environment | Dictionary | No | Extra environment variables for the program; an empty value removes one. | |
| Session | String | No | cmd | Name for this session; later steps use it. |
Outputs
| Output | Type | What it is |
|---|---|---|
| process_id | Number | Process id of the program. |