Invoke webrequest is kinda old-school tbh. Try `Invoke-RestMethod` instead—it’s more forgiving with JSON responses and handles redirects better.
Also, some sites block PowerShell’s default TLS version. Force TLS 1.2 at the start of your script:
```powershell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
```
If all else fails, curl (the real one, not alias) or httpie might be worth a shot.
Also, some sites block PowerShell’s default TLS version. Force TLS 1.2 at the start of your script:
```powershell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
```
If all else fails, curl (the real one, not alias) or httpie might be worth a shot.
