To get that powershell feeling

Debian and Ubuntu

 $ apt install curl
 $ alias invoke-webrequest curl

Redhat and Fedora

 $ dnf install curl
 $ alias invoke-webrequest curl

macOS

 $ alias invoke-webrequest curl

This fancy installation will give you an invoke-webrequest command that will actually work like curl, which will be a broken invoke-webrequest. Pretty much in the exact same spirit the broken curl alias works that powershell normally adds that works like invoke-webrequest...

See also Removing the PowerShell curl alias

Maybe just use curl instead?