The routine that uses Ghostscript to convert postscript output into PDF uses the following 12 parameters
ps2pdf (name of GS instance, always ignored)
-dNOPAUSE
-dBATCH
-dSAFER
-sDEVICE=pdfwrite
-dAutoFilterColorImages=false
-dColorImageFilter=/FlateEncode
-sOutputFile=[postscript file path]
-c
setpdfwrite
-f
[PDF output file path]
where:
[postscript file path] is the path of the postscript file, and
[PDF output file path] is the path of the PDF output file
See the Ghostscript Usage documentation for details on the above parameters.