Fixed! As it turned out I had to add the DLL as well as the EXE to the "Windows Volume/Temporary" folder as temporary filesd, and than use "Launch EXE with working directory" to get things done during script execution. Before, when I put the DLL in the temporary folders section, ...