我无法将Windows中的有效cURL命令转换为等效的PowerShellInvokeRestMethod命令。看起来我很接近。我收到回复了。但是,API似乎无法理解InvokeRestMethod命令发送的嵌套哈希表元素"domain"。API似乎可以很好地识别所有其他哈希元素。cURL命令(有效)curl"https://api.rebrandly.com/v1/links"-XPOST-H"apikey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"-H"Content-Type:application/json"-d"{\"destination\":\"h