Tmux is just another terminal that persists when you quit SSH and allows you to use multiple panes/windows to split it up and have multiple terminals in one.
I only use tmux when something is interactive, under testing, or not a script
You can look at Monit for an alternative to PM2 that has more api functionality.