Remove curl alias from PowerShell

PowerShell aliases curl to Invoke-WebRequest by default. To use the actual curl binary, remove the alias in your profile.

Create a PowerShell profile if you don’t have one:

New-Item $profile -force -itemtype file

Edit the profile:

notepad $profile

Add this line:

remove-item alias:curl

Apply changes by restarting PowerShell, or reload the profile:

. $profile