Provided your CSV file looks something like this
"vmName"
"VM1"
"VM2"
you can do something like this
$csvName="C:\vmnames.csv"
Get-VM-Name (Import-Csv-Path$csvName-UseCulture|Select-ExpandPropertyvmname) |%{ $cluster=Get-Cluster-VMHost$_.Host
$esx=Get-VMHost-Location$cluster
$numcpu=$esx|%{$_.ExtensionData.Hardware.CpuInfo.NumCpuPackages} |Measure-Object-Sum|
Select-ExpandPropertySum
$numcores=$esx|%{$_.ExtensionData.Hardware.CpuInfo.NumCpuCores} |Measure-Object-Sum|
Select-ExpandPropertySum
$_| SelectName,
@{N="Host";E={$_.Host.Name}},
@{N="Cluster";E={$cluster.Name}},
@{N="Total Hosts/Cluster";E={$esx.Count}},
@{N="Total CPU/Cluster";E={$numcpu}},
@{N="Total Cores/Cluster";E={$numcores}} }