Quite old, but still I had a hard time finding the answer:
sacct -j <jobid> -o submitline -P
is the magic you are looking for!
Example for one of my jobs
sacct -j 13809705 -o submitline -P
SubmitLine
sbatch run_sim.sh data/data.csv sim_results/ 1.05 110 sim_results.ag 1740607046958 1000