Since this is in a UDT, sometimes Gateway Tag Change Sripts aren’t easily resused.
Consider this thread and the queue @pturmel has: Java concurrent queue for tag change scripts
Basically you still have the tag change script in the UDT. It would stash a tag path or such into the queue, and then you have a timer script running that drains the queue, doing something with the previous data you stashed.