Page History
...
- Consider use of the following shebang in the first line of the job script:
@@setlocal enabledelayedexpansion & @@findstr/v "^@@f^@@[fs].*&" "%~f0" | pwshpowershell.exe -NonInteractive -Command - &goto:eof& exit !errorlevel!/b&
- The PowerShell executable
pwsh.exe
is available starting from PowerShell 6.0. PowerShell releases 5.x use the executablepowershell.exe
that can be used accordingly with the shebang. - For details about the PowerShell shebang see the JS7 - How to run PowerShell scripts from jobs article.
...
Overview
Content Tools