srun command is used to run task on node. It provides options to provide partition, nodes and other resources.

Below is one example that starts a bash session on a compute node.

srun --nodes=1 --ntasks-per-node=1 --cpus-per-task=2 --time=02:00:00 --pty bash -i