Regex

Find processes by reg expression (switch -r):

    processviewer.exe sql.* -r

If sqlbrowser.exe or sqlserv.exe is running, processviewer.exe exits with 1, and prints out "found". Otherwise, it exits with 0, and prints out "not found".