How to use Powershell to download a script file then execute it with passing in arguments? <p>I usually have this command to run some powershell script:</p> <p><code>&amp; ".\NuGet\NuGet Package and Publish.ps1" -Version $env:appveyor_build_version -NuGet "C:\Tools\NuGet\nuget.exe" -apiKey $env:apiKey</code></p> <p>works fine but the script is found locally on my server. </p> <p>I'm hoping to say: run this script with arguments, etc.. fine .. but the script is located as a GIST or in some GitHub public repo.</p> <p>Is this possible?</p>