I am running a powershell script which uses the office365 Connect-MsolService cmdlet. When running the script manually on the probe server, it runs fine. I run this on the same user account as the PRTG sensor does. The cmdlet is obviously installed.
When running the script via the EXE/Script sensor, it stays the cmdlet is not recognized as the name of a cmdlet, function, script file, or operable program.
What might be causing this?