Invoke-WebRequest -Uri "https://example.com/file.txt" -OutFile "C:\path\to\file.txt"
$webClient = New-Object System.Net.WebClient powershell 2.0 download file