You can use the distributed switch cmdlets new to PowerCLI 5.1 Release 2:
New-DistributedSwitchPortGroup -Name vDS01-VLAN22 -DistributedSwitch vDS01 -VLAN 22
You can use the distributed switch cmdlets new to PowerCLI 5.1 Release 2:
New-DistributedSwitchPortGroup -Name vDS01-VLAN22 -DistributedSwitch vDS01 -VLAN 22