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: