NativeCommand.psm1
# thanks to https://github.com/TSlivede for this function function Invoke-NativeCommand($command) { $env:commandlineargumentstring=($args | %{'"'+ ($_ -replace '(\\*)"','$1$1\"' -replace '(\\*)$','$1$1') + '"'}) -join ' '; & $command --% %commandlineargumentstring% } New-Alias -Name ^ -Value Invoke-NativeCommand -Scope Global |