how do you inject a script in table resource (not custom) so that table action can interact with it like dispatching an event?