If you are trying to curl an external endpoint and have WSL then WSL will work. But because WSL runs in its own network you might not be able to curl from a WSL shell to, for example, a server on Windows. Don’t also download any curl executable from any third untrusted party.
Instead, the best solution is to just download Git Bash. From Git Bash you can call curl with all your favourite commands just like you usually do on Linux. Can’t believe I lost so much time on this! Hopefully you won’t. Nobody has time to learn Powershell’s nonsense invokerequest.