From e7c1b054ca388c52056476ff197bc3be1953f0ad Mon Sep 17 00:00:00 2001 From: Caffeine Fueled Date: Sun, 28 Sep 2025 01:11:50 +0000 Subject: [PATCH] Add Powershell Test Script --- Powershell-Test-Script.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Powershell-Test-Script.md 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