Invoke-IcingaCheckMSSQLBackupStatus local execution output differs from ICINGA2 check

Hi,

If i execute this command

Invoke-IcingaCheckMSSQLBackupStatus -SqlUsername 'icinga' -SqlPassword (ConvertTo-IcingaSecureString 'REDACTED') -SqlHost 'HOSTNAME' -Verbosity 2 -LastBackupLogAgeWarning 24h -DatabaseStatusWarning Emergency

The state=0

If the ICINGA Server schedules the check via the ICINGA2 Windows Agent the state=1 because the master Database is in warning state. The Master sends the following command:

'curl' '--verbose' '--tlsv1.2' '--fail-with-body' '--connect-to' 'HOSTNAME:5668:localhost:5668' '--ciphers' 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256' '--cert' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//HOSTNAME.crt' '--key' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//HOSTNAME.key' '--cacert' 'C:\ProgramData\icinga2\var\lib\icinga2/certs//ca.crt' '--request' 'POST' '--url' '``https://``HOSTNAME``:5668/v1/checker?command=Invoke-IcingaCheckMSSQLBackupStatus``' '--user-agent' 'Icinga/v2.16.6' '--header' 'Accept: application/json' '--header' 'Content-Type: application/json' '--data-raw' '{"DatabaseStatusWarning":"Emergency","LastBackupAgeWarning":"24h","SqlHost":"HOSTNAME","SqlPassword":"REDACTED","SqlPort":"1433","SqlUsername":"icinga","Verbosity":"2"}'

Is there anything i could debug by myself? Or is that expected behavior?

Thanks.