Skip to content

Instantly share code, notes, and snippets.

@joeypiccola
Created February 8, 2017 23:45
Show Gist options
  • Save joeypiccola/0cad772b245019eb8e260bd8d24c69af to your computer and use it in GitHub Desktop.
Save joeypiccola/0cad772b245019eb8e260bd8d24c69af to your computer and use it in GitHub Desktop.
Ever wanted to run a parameterized batch file that calls a PowerShell script from the web?
REM Usage 'webscript.bat SomeScriptName'
echo off
set script=%1
shift
set scriptname=%script%.ps1
powershell -command "iwr https://artifactory..com/artifactory/scripts/vmwarerunonce/%scriptname% -UseBasicParsing | iex"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment