https://www.retouw.nl/2022/06/03/powershell-script-to-gather-global-horizon-sessions-using-rest-apis/
Powershell script to gather (Global) Horizon sessions using REST api's