Sales Order Printing via BOI in Sage 100

SOLVED

Hi BOI-Experts,

I need some help with a BOI script that I use to print Sales Orders. It works properly in two of my test environments (Sage 100 v2017 Standard, Sage 100 v2018 Advanced).

But I am not able to run it in he Sage 100 v2018 Standard target environment. I tried it both on the server as well as the server. The script is written in MS Powershell, but I don't think that matters. I get the an System.Runtime.InteropServices.COMException error on the .nInitReportEngine() method. Here is what the line looks like:

$retval = $oProg.nInitReportEngine()

The script works fine in both of my test environments. And in the target environment it properly creates the objects and logs into Sage.

Any ideas?

Thanks for your help!

Bastian