After a lot of research and looking around on here, I'm stumped with a Powershell montior I'm working on. The script is calling the API for GlobalScape's EFT server.
On one server this script works perfectly, returning the correct statistic value and displaying it in Orion. (IPs, etc.obscured)
$srvObj = New-Object -ComObject "SFTPCOMInterface.CIServer"
$srvObj.Connect("xxx.xxx.x.xx", "xxxx", "xxxx", "xxxxxx")
$count = $srvObj.ConnectedUsersNumber
write-host "Message:"
write-host "Statistic: $count"

Another server, (using the same script, just different params on the "Connect" object), fails with this error:

Testing the script output returns the following:

Any ideas on what is wrong here? Thanks!