Microsoft has officially deprecated PowerShell 2.0 because it lacks modern security features like , which makes it a target for attackers. If you are on a modern version of Windows (Windows 10/11), it is recommended to use PowerShell 5.1 or 7.x and the Invoke-WebRequest command instead.
In enterprise environments, you often need credentials:
If you actually need to itself for an older system:
Here’s a concise report on .