$p = Get-Process -Name 'u-desktop' -ErrorAction SilentlyContinue if (-not $p) { Write-Host "u-desktop not running"; exit 0 } Write-Host "PID: $($p.Id)" Write-Host "CPU time: $([math]::Round($p.CPU, 2))s" Write-Host "WorkingSet: $([math]::Round($p.WorkingSet64/1MB, 1)) MB" Write-Host "PrivateMem: $([math]::Round($p.PrivateMemorySize64/1MB, 1)) MB" Write-Host "Threads: $($p.Threads.Count)" Write-Host "Handles: $($p.HandleCount)"