How to download an archive and extract it without saving the archive to disk using Powershell?
Had to adjust Geralds answer to make it work:
# create temp with zip extension (or Expand will complain)
$tmp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } –PassThru
#download
Invoke-WebRequest -OutFile $tmp $url
#exract to same folder
$tmp | Expand-Archive -DestinationPath $PSScriptRoot -Force
# remove temporary file
$tmp | Remove-Item