You could do something like this.
But that is probably not 'simple' enough
Get-VMHost -Name $host1 |
Get-Stat -Start (Get-Date).AddDays(-1) -Stat 'cpu.usage.average','mem.usage.average' -Instance '' |
Group-Object -Property {$_.Entity.Name} |
ForEach-Object -Process {
New-Object -TypeName PSObject -Property @{
VMHost = $_.Name
CPU = [math]::Round(($_.Group | where{$_.MetricId -eq 'cpu.usage.average'} |
Measure-Object -Property Value -Average |
Select -ExpandProperty Average),1)
Memory = [math]::Round(($_.Group | where{$_.MetricId -eq 'mem.usage.average'} |
Measure-Object -Property Value -Average |
Select -ExpandProperty Average),1)
}
}