In PowerShell 2.0, downloading files requires using older .NET classes because the modern Invoke-WebRequest cmdlet (standard in v3.0+) does not exist in this legacy version. Core Download Methods for PowerShell 2.0
class. This method is synchronous, meaning the script will pause until the download completes. Standard Download powershell "http://example.com" "C:\temp\file.exe" powershell 2.0 download file
<#
.SYNOPSIS
Download a file using PowerShell 2.0 compatible .NET WebClient.
.DESCRIPTION
Handles TLS 1.2, proxy credentials, and basic error handling.
.PARAMETER Url
The source URL of the file to download.
.PARAMETER Path
The local destination path (including filename).
.EXAMPLE
.\Download-File.ps1 -Url "https://example.com/update.exe" -Path "C:\temp\update.exe"
#>
[Parameter(Mandatory=$false)]
[int]$TimeoutSeconds = 60,