VM’s Cluster Host and Data Store Information with Powercli script :
we can able to get the desired output .
Get-VM -Name (Get-content c:\vmname.txt)| Select Name, @{N="Cluster";E={Get-Cluster -VM $_}},
@{N="ESX Host";E={Get-VMHost -VM $_}},
@{N="Datastore";E={Get-Datastore -VM $_}}
Thanks hope you like it.
Rajiv Pandey.