Write-Output "=== services ===" foreach ($s in 'Sonarr','Radarr','Jackett') { $svc = Get-Service $s -ErrorAction SilentlyContinue Write-Output ($s + ": " + $(if ($svc) { $svc.Status } else { "GONE" })) } Write-Output ("qbittorrent proc: " + (@(Get-Process qbittorrent -EA SilentlyContinue)).Count) Write-Output ("flaresolverr proc: " + (@(Get-Process flaresolverr -EA SilentlyContinue)).Count) Write-Output "=== dirs ===" Write-Output ("C:\cleanup_bt.py: " + (Test-Path C:\cleanup_bt.py)) Write-Output ("C:\flaresolverr: " + (Test-Path C:\flaresolverr)) Write-Output ("C:\gost: " + (Test-Path C:\gost)) Write-Output ("research-tool: " + (Test-Path C:\projects\research-tool)) Write-Output ("glances task: " + (Get-ScheduledTask glances -EA SilentlyContinue).State) Write-Output "STATE_DONE"