PdfMerge pdf files will get merged in the order that you write them in the command arguments pdfmerge pdf-1 ... pdf-n newPdfName.pdf