BOI - Printing of Purchase Orders - Unattended

SOLVED

Experts,

I have a script that prints Purchase Orders to PDF through BOI. The script works fine when I manually run it. If I run it unattended through Windows Task Scheduler, it doesn't print the PDFs. My logfiles show that all the return values are okay until

$retVal = $oPOPrint.nProcessReport("EXPORT"). I am not getting an error message from $oPOPrint, but the retVal is 0

Is Sage BOI capable of printing PDFs with no user logged in? If yes, what needs to be done to make it work?

Thanks for your help!

Bastian