@cruunnerr @Mykle1 You both are right.
@cruunnerr is executing the Shell script, which must be executed in the same directory as the script is located in, except you define the path in the pm2 command like this pm2 start /path/to/script.sh (also given, the script used absolute paths, or can handle the “remote” execution)
@Mykle1 You are executing the pm2 “deamon”, which can be executed everywhere