Gateway Event Scripts Enable/Disable through GUI

Hi everyone,
I have written a script in Gateway Timer Scripts section. i want to make it ‘Enabled’ from GUI window using the button object. is it possible to do it???

Or is there any other way?

Use a boolean memory tag. Have the timer script read that tag at the beginning and only perform the rest of the logic if the value is true. Use any user interface objects you like to control that tag. Check boxes or one of the Toggle buttons would be easiest to use.