$ 0 0 Nothing a Where-clause can't fix Get-Variable-NameHDD[2-6]|where {$_.Value-ne0} |%{ $vm|New-HardDisk-CapacityGB$_.Value}