there are some tutorials on how to create pdf files with powershell like this one here: http://www.powershell.nu/2009/09/08/scripting-pdf-documents-through-powershell/
i had some troubles to open and change an already created pdf – here is how it needs to be done
# load the pdf library
[System.Reflection.Assembly]::LoadFrom("itextsharp.dll")
# read the form
$reader = New-Object iTextSharp.text.pdf.pdfreader -ArgumentList "form.pdf"
# create a new file with the read content
$writer = New-Object iTextSharp.text.pdf.pdfstamper($reader, [System.IO.File]::Create("filled-form.pdf"))
# set content to a form field
$writer.AcroFields.SetField('key','value')
# close the filestream
$writer.Close()
this will work for unencrypted pdf files