Trying to detect running process

Trying to run this code

// run this commando ps ax | greop adaemon
if (proc.Run("/bin/ps", [“ax”, “|”, “grep adaemon”], nil, “/bin”) = 0) then

result in this exception at runtime

error garbage option

theres any other standard way to do this on dotnet, compatible to windows and linux?
(i know ps only run on linux)

Best regards

I’ll need a bit more details than this. what is `proc"? What platform is this on?