$url = "https://eu-mc1-api.sepmobile.securitycloud.symantec.com"
$org_id = "987654321098"
$auth_token = "ABCDEFghijklmnop12#$"
$headers = @{'API-VERSION' = '1.1'}
$body = @{'auth_token' = $auth_token}
$response = Invoke-WebRequest -Uri "$url/organizations/$org_id/statistics" -Method Get -Headers $headers -Body $body
$responseJSON = ConvertFrom-Json $response.Content
write "General"
write ("Devices: " + $responseJSON.data.statistics.general.devices.total)
write ("Active: " + $responseJSON.data.statistics.compliance.compliant)