Last active
June 2, 2020 07:22
-
-
Save alexverboon/ffbd3ff7b3a35e4129cfdc43812ec940 to your computer and use it in GitHub Desktop.
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
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