Last active
August 29, 2015 13:56
-
-
Save jstrassburg/9233395 to your computer and use it in GitHub Desktop.
A simple proxy for launching a PowerShell script from the regular command prompt
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
@echo off | |
SET DIR=%~dp0% | |
@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%MyScript.ps1' %*" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I changed it to .txt from .cmd because the syntax formatting was hiding the %DIR%.