Here is a powershell script to use restful API to create ticket in our ticketing tool. Can anyone please convert it to a shell script sothat, I can run it in Unix servers,
below is the code:
$body = @{
Customer= ''test'
Summary= 'test summary'
Impact= '4-Minor/Localized'
Urgency= '4-Low'
Service= 'Applications'
Incident_Type= 'User Service Restoration'
Reported_Source= 'Direct Input'
Assignee_Group= 'Stest'
Product_Name= 'P_name'
Product_Manufacturer= �test_product
} | ConvertTo-Json
$url = "https://test.com/"
Invoke-RestMethod -Method Post -Uri $url -UseDefaultCredentials -Body $body -ContentType 'application/json; charset=utf-8'