Use check_cmd() to check keyword
Print PID of tasks
Finish ps command