Function powershell_script::run_raw
source · [−]pub fn run_raw(
script: &str,
print_commands: bool
) -> Result<ProcessOutput, PsError>
Expand description
Runs the script and returns an instance of std::process::Output
on
success. The flag print_commands
can be set to true
if you want each
command to be printed to the stdout
of the main process as they’re run.
Panics
If there is an error retrieving a handle to stdin
in the child process.