Getting your Asset license Details from vCenter

I had a requirement to get the asset license information from vcenter.
this was to list the license codes by asset rather than by the product registered in vcenter.
I also have multiple vcenters to connect to.

Here is a script that will get the job done for you.