这是将该主体转换为PowerShell可以解释的主体的方法。
$body = @{grant_type='authorization_code' client_id='s6BhdRkqt' redirect_uri='MyAppServer.com/receiveAuthCode' code='i1WsRn1uB'} $contentType = 'application/x-www-form-urlencoded' Invoke-WebRequest -Uri-body $body -ContentType $contentType