First time accessing an API - Beginner

This would indicate that the specified client_id is not a valid client id.

Or when you copy/pasted included extra characters such as a space on the end by accident

Also worth nothing that on windows it is potentially possible that you invoked invoke-webrequest rather than cURL

This likely indicates a fault or issue with your local SSL configuation, usually cert bundle out of date is the common culprit.