RMM/AppCheck.ps1
2024-11-02 16:18:01 -05:00

11 lines
207 B
PowerShell

$var = $args[0]
$App = Get-Process $var -ea SilentlyContinue
if ($App) {
Write-Output "$var running!"
$host.SetShouldExit(0)
}
else{
Write-Output "$var not running!"
$host.SetShouldExit(1)
}