pm2 automation code example
Example 1: install pm2
npm install pm2 -g
Example 2: how to run script command in pm2
pm2 start npm --name "my-app-name" -- run "npm:script"
npm install pm2 -g
pm2 start npm --name "my-app-name" -- run "npm:script"