https://gamblisfx.com/shell-command-to-check-if-a-process-is-running-or-not/
Shell command to check if a process is running or not