You can use for example
srun OTHERPARAMETERS --pty bash
to request an interactive job. OTHERPARAMETERS
are parameters like time limit partition or others explained in Running Compute Jobs .
WARNING: Interactive jobs are not recommended because it is very likely that your job will NOT start immediately due to other jobs already running on the system.