EDITED:
If this is an external script, which i'm assuming it is based on the ""n"" prefix in your method, it is because of the crystal report runtime compatibility issues.
See my post about this here
https://90minds-com.socialcast.com/messages/39153076?ref=stream
Make sure you determine the path of pvxcom.exe so you can copy pvxwin32.exe.config to the appropriate directories. Use Task Manager with the path column included to view the path for pvxcom.exe once your script has instantiated the Providex.Script object.
You'll want to copy the pvxwin32.exe.config file from the 2018 server's MAS90\Home directory to all folders containing pvxcom.exe, then rename the copied pvxwin32.exe.config file to pvxcom.exe.config.