Post:
$body = @{
client_id='id'
client_secret='secret'
grant_type='client_credentials'
}
$contentType = 'application/x-www-form-urlencoded'
$sourceApi = yoururl
Invoke-WebRequest -Method POST -Uri $sourceApi -body $body -ContentType $contentType