This depends on the supercomputer hardware (cores per node, mabye GPUs) and the NAMD build (MPI?, SMP?), so giving you general instructions is difficult without knowing anything about the supercomputer you want to run your jobs on.
Assuming a normal network enabled SMP build of NAMD, you'd use one process per node which might be "ntasks" and threading this process across the remaining cores "cpus-per-task". However, please realize that this script you might have, is not a commonly known standard, rather than a template for that particular supercomputing facility, so without us seeing it, we can't tell for sure.
If you have an MPI build of NAMD, than you need to start it via mpirun. Write mpirun in front of the namd2 command. Than you need to select the number cpus for the simulation. If a node has 24 cores, than use multiples of 24 for --ntasks.