Thanks for input
I'm getting an error:
The term 'get-vdswitch' is not recognized as the name of a cmdlet, function, script file, or operable program
at
foreach($dvSw in Get-VDSwitch <<<< -VMHost $esx){
+CategoryInfo "ObjectNotFound: (Get-VDSwitch:String) {}, CommandNOtFoundException
I'm running powercli 5.1 release 1