Opsgenie CheckMK integration is not working

we replaced that script by the same version in powershell (2.1) and it works just fine, so if you install powershell on your checkmk server, I can share the script.

The rest of the setup is the same, just replace the content of the script