Pdf file autosave

Hello all
I have program that uses the PDF program to print to it. meaning we send a file to print to PDF it autosaves the file as PDF at a certain folder we defined. It works great.
The problem is that if we use via a task scheduler it doesn't work, the program seems to ignore the scheduler.
Can anyone Help?

THX