The knowledge about the script engine is not in the module. The module should not care about this - and simply doesn't have this information. The responsibility for executing scripts in the correct way is in the application and in the script engine wrapper.