You have to specify the variable for the object in the pipeline instead of $vmh
Something like this
Get-VMHost|SelectName,@{N="settings";E={(Get-VMHostAdvancedConfiguration-vmhost$_-nameUserVars.ESXiShellTimeOut).values}}
You have to specify the variable for the object in the pipeline instead of $vmh
Something like this
Get-VMHost|SelectName,@{N="settings";E={(Get-VMHostAdvancedConfiguration-vmhost$_-nameUserVars.ESXiShellTimeOut).values}}