Created
March 19, 2021 05:29
-
-
Save tabs-not-spaces/7e3a63639b8c5773c8bb91a794f910e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($PSVersionTable.PSEdition -ne "Core") { | |
if ($myInvocation.Line) { | |
&"$env:ProgramFiles\PowerShell\7\pwsh.exe" -NonInteractive -executionPolicy Bypass -NoProfile $myInvocation.Line | |
} | |
else { | |
&"$env:ProgramFiles\PowerShell\7\pwsh.exe" -NonInteractive -executionPolicy Bypass -NoProfile -file "$($myInvocation.InvocationName)" $args | |
} | |
exit $lastexitcode | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment