mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-24 00:07:24 -05:00

- use join method to parse $argList - use $PSCommandPath instead of $MyInvocation.MyCommand.Path - use ScriptBlock method to create request for latest winutil.ps1 with join $argList - condition for $processCmd because in case when wt.exe is not available, there was double/redundant declaration of shell which lead to code mishmash (incorrect interpretation of quotes from Start-Process ArgumentList parameters - changes in quotes and escape characters because command where not interpreted correctly in all possible cases of $powershellCmd and $processCmd