LucD
I corrected that and now have another one:
The term 'Get-VM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At C:\Documents and Settings\iswbez\Desktop\wbNFSJan232013.ps1:5 char:14
+ $vms = Get-VM <<<< | where {$_.PowerState -eq "PoweredOn"}
+ CategoryInfo : ObjectNotFound: (Get-VM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException