Hello Luc,
After trying the suggested one, $Lic & $LicUse are not working, can you please check if any changes are required.
Apart from this, as currently this script will be useful for running on Virtual Center, can we modify it where a list of standalone ESX can be imported for query?
Thanks
Mandeep