diff --git a/Powershell-Test-Script.md b/Powershell-Test-Script.md new file mode 100644 index 0000000..eb79e0d --- /dev/null +++ b/Powershell-Test-Script.md @@ -0,0 +1,14 @@ +```powershell + +$hostname = $env:COMPUTERNAME +$status = "OK" +$body = "$hostname,$status" + +$headers = @{ + "Authorization" = "Bearer 1234-1234-1234" +} + +$domain = "http://example.com/api/test1/" + +Invoke-RestMethod -Uri $domain -Method Post -Body $body -Headers $headers +``` \ No newline at end of file