How to call a method with output parameters in PowerShell? How to call a method with output parameters in PowerShell? powershell powershell

How to call a method with output parameters in PowerShell?


$explorer = gwmi Win32_Process -computerName computerName -filter "Name='explorer.exe' and SessionID=0"   $explorer.GetOwner() | select user,domain