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?


Unfortunately this is a Me Too - win server 2019, powershell start-process -loaduserprofile. works fine if the script is run. If started as a scheduled task, the part that tries to print does not create a pdf. Can see that report.exe (the part that prints) is owned in task manager by the only user that has a default pdf creator profile connected to a pdfcreator printer (the only printer on the system).
Does anyone have a solution?