Under which account does the scheduled task run? - one service account
How do you connect to the vSphere Server in the scheduled task? VICredentialStoreItem, hard-coded...? no the account has access to vcenter when it runs automatically connects
Did you suppress all 'interactivity'? For example did you disable Depreciation Warning message? - yes
Is there any reason why you are using that rather old PowerCLI version? - it was configured earlier not changed , it was working recently there exchange migration happened 2010 to 2016 and this issue started and they cannot find a reason / fix
That is what the VDS plugin is telling you. - how to use instead of old PowerCLI
To allow the plugin to detect the guest OS name, requires that VMware Tools are installed inside the guest OS.
Apparently they aren't on the VM you tested against. - Tools are available