Hi LucD,
OK got it,
one question... I ran it and it found items I expected, except for one VM out of inventory. The VM it did not find, there actually is a VM by the same displayname in inventory right now. Did the VM with the same displayname that is in inventory confusing the script?
I plan to remove/delete the out of inventory VM, but this is a real case that appears to happen in my environment.. people leave stuff lying around.