Your solution is correct:
sed "${PBS_ARRAYID}q;d" job_params
The only problem is that sed
considers the first line to be line 1 (thanks rici), so PBS_ARRAYID must be in range [1,X], where X is the number of lines on the input file, or:
wc -l job_params