$ apt install curl $ alias invoke-webrequest curl
$ dnf install curl $ alias invoke-webrequest curl
$ 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?