How find out process id of virtual machine through powershell & cmd

Firts step has to be find out number of proccess

S2K8R2

get-wmiobject -Namespace root\virtualization -class msvm_computersystem | fl ElementName,proc*

S2512

get-wmiobject -Namespace „root\virtualization\v2“ -class msvm_computersystem | fl ElementName,processID