I think a broker DLL that depends on the script name is a bad idea. Better set up the wanted behavior directly in the DLL, with a user command.

For sending text, use a command from 4000..5999.