Skip to content

Instantly share code, notes, and snippets.

@alexverboon
Last active June 2, 2020 07:22
Show Gist options
  • Save alexverboon/ffbd3ff7b3a35e4129cfdc43812ec940 to your computer and use it in GitHub Desktop.
Save alexverboon/ffbd3ff7b3a35e4129cfdc43812ec940 to your computer and use it in GitHub Desktop.
Write-host "I was just downloaded"
Function RunMe{
Param(
$Param1
)
write-host "And executed with $Param1"
pause
}
$file = "https://gist.githubusercontent.com/alexverboon/ffbd3ff7b3a35e4129cfdc43812ec940/raw/343a26f13df519542260c49dc931a4bf452bede2/TestDL.ps1"
Start-BitsTransfer -Source $file -Destination c:\temp\testdl.ps1
cd c:\temp
. .\testdl.ps1
RunMe -Param1 "Welcome"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment