Skip to main content

Module powershell

Module powershell 

Source

Constants§

UTF8_OUTPUT_PREFIX
Prefixed command for powershell shell calls to request UTF-8 console output.

Functions§

extract_powershell_command
Extract the PowerShell script body from an invocation such as:
parse_powershell_command_into_plain_commands
Parse the script body from a top-level PowerShell wrapper into argv-like commands.
prefix_powershell_script_with_utf8
try_find_powershell_executable_blocking
This function attempts to find a powershell.exe executable on the system.
try_find_pwsh_executable_blocking
This function attempts to find a pwsh.exe executable on the system. Note that pwsh.exe and powershell.exe are different executables: