I am trying to create a Process Count using PowerShell
Here is the script
$App = $args[0]
$proccount = (get-process $App).Count
Write-Host 'Statistic: ' $proccount
Write-Host 'Message: ' $App
exit(0)

Above is what the test returns (0)

The above is what running the powershell local on the system returns (2)