11 lines
207 B
PowerShell
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)
|
||
|
}
|