Curl to Invoke-WebRequest

Hi guys,
I need help to convert this curl command to Invoke-WebRequest

curl --globoff -s -k “https://xxxxxxxxxx:9081/api/sam/v2/computers?token=tokenxxxxxxxxx&columns[]=id&columns[]=os&columns[]=name&columns[]=dns_name&columns[]=ip_address&columns[]=last_seen&columns[]=computer_hardware.computer_type&columns[]=computer_hardware.processor_brand_string&columns[]=computer_hardware.processor_type&columns[]=computer_hardware.processor_brand&columns[]=computer_hardware.processor_vendor&columns[]=computer_hardware.partition_cores&columns[]=computer_hardware.node_total_processors&columns[]=computer_hardware.server_cores&columns[]=computer_hardware.server_name&columns[]=computer_hardware.pvu_per_core&columns[]=computer_details.computer_property_3&columns[]=computer_details.computer_property_8” > computers.json

Anyone can help me?
Tks in advance

@monica
I am not great at powershell myself, but I did find this powershell example from bigfix.me. It shows Invoke-WebRequest as well as authentication for BigFix server.

http://files.bigfix.me/RestAPI_PowerShell_Example.zip

BigFix Inventory is a little different, so you might need to fiddle with the authentication method a bit to get it running (token=tokenxxxxxxxxxxx in your URL above)

There is another good thread on powershell and BigFix API by @MDMike here:

It is also not specific to the BigFix Inventory API, but should give you some good starting points.

If you get stuck, posting your work so far might encourage a wider response from our forum members.