The dynamic document name won't help you in that situation. But you can save the Optimized PS output somewhere and use the Add Lines task to prepend your information to the job before sending it to the printer, thus essentially sending two distinct jobs in one.

You're right, Optimized PS won't allow you to run forms directly since the PS is already "consumed", in the sense that at that stage, it isn't a programming language anymore but a PDL that requires no further processing other than converting the PS calls to a raster image by the printer RIP.

Hope that helps,
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen