Submit a script that is executed on 2 nodes using 4 cores per node

qsub

qsub -l nodes={{2}}:ppn={{4}} {{script.sh}}

click the source code to copy install qsub on any operating system with command-not-found.com