how to download file in powershell

$url = "https://www.example.com/file.zip"
$output = "C:\path\to\save\file.zip"
Invoke-WebRequest -Uri $url -OutFile $output