reference:evaluator:run

Run(
     [string:command],
     [string:flags],
     [array:files]
)
bool or int or string

Arguments

command

Optional. Command line to run.

flags

Optional. Flags.

files

Optional. Files to pass to the command.

Return value

Success/failure, result code or captured output.

Description

Runs a command. The command string can be any internal Opus command or external program, and and can consist of multiple lines (separated by CR/LF).

The optional flags argument should be a string containing one or more of the following flags:

aAsynchronous. Does not wait for the command to finish.
dMS-DOS mode. Runs the command as a DOS process.
eElevate. Runs the command as an administrator (external only).
oCapture output from the command (implies d).
sScript. Runs the command as a script. Language must be set with a @language directive at the top of the command string.
wWSL. Runs the command as a WSL function.

If asynchronous, the return value is either true or false. If synchronous, the return value is either the exit code of the command or process, or the captured output text as a string.