If anyone had some time to help me I would appreciate it!!
My ultimate objective is to output an object that would look like this (please tell me if this is dumb);
ProcessName DoesItExist
agent True
FakeProcess False
I am trying to accomplish this with the following code so far - but up to this point it doesn’t even work as I expected as it outputs warnings for processes that should work…
Why am I getting Warning for the processes that should be returning True/ Example my output:WARNING: agent has failed
WARNING: ApplicationFrameHost has failed
WARNING: FakeProcess has failed
WARNING: FakeProcessTwo has failed
ProcessName DoesItExist
agent True
How can I make my object return like the following (Please assume that agent, applicationframehost have both returned true and fakeprocesses have returned false)ProcessName DoesItExist
$Hash is the array to be added to, not $Test. Initialize the $Hash array. Unfortunately, try hides the error messages. I haven’t used it. It’s probably better for normally terminating errors. You may want to use the boolean $true.