Remove `curl` alias from PowerShell permanently
PowerShell aliases curl to Invoke-WebRequest by default. To use the actual curl binary, remove this alias permanently.
Check if profile exists
Test-Path $PROFILE
If False, create it:
New-Item -Path $PROFILE -ItemType File -Force
Add alias removal to profile
notepad $profile
Add this line and save:
Remove-Item Alias:curl -ErrorAction SilentlyContinue
Restart PowerShell.
If alias persists
Enable script execution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser