Last active
November 10, 2021 11:02
-
-
Save Himura2la/e014ebf9f84e00012a4231af8435c953 to your computer and use it in GitHub Desktop.
Run PowerShell scripts
This file contains hidden or 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 "%~1" == "" ( | |
@echo Drop a *.ps1 file onto this script. | |
) else ( | |
@echo --- launching %~1 --- | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~1'; echo ""--- %~1 returned $LastExitCode ---""" | |
) | |
@pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment