Here is a super handy module that is a bit old, but does the trick and has saved me a bunch of time. It’s called Merge-PDF. It does exactly what is says, and I know your thinking Adobe and other pdf writers can already do this…. How about needing to do it on a computer that doesn’t even have a pdf reader on it and you can merge based on variables? That’s how powerful this module is.
An example I use this for is when I have to prep a Purchase Order to be signed. I have to merge the quote and purchase order together. Now I just use a specific name for the quote and purchase order, then run my PowerShell, and it grabs the 2 files, merges them, names the file to the final document name per my template, then puts it in folder I need to from the parameters built into my script. If I wanted to I could even email them off to someone or import them into DocuSign.
PowerShell Gallery:
MergePdf/1.1