I would like to have a user command that can add a couple lines of code to an operator's OnResourceAvailable trigger, and also remove the trigger. Currently there is no code on this trigger so there is no need to worry about it being overwritten. Similarly, when code is removed it can be removed all at once. I'm looking for a solution that works specifically via user command and not a process flow. It would also need to work while the model is running. Thanks in advance for your help.