How do I stop running prism server using a command?

Hello,
I am using npm to run the prism server using the command npm run start:prism. I am wondering if I can use a command for stopping the running prism server something like stop:prism

scripts: {
"start:prism": "prism mock test.yaml --dynamic",
"stop:prism": "prism mock ?",
}