Enable/Disable Gateway scripts

has anything changed here? can we enable/disable a gateway timer from script?
I have timer running every 1 second to detect shift / break change,

I've been doing this Enable/Disable gateway timer using script - #2 by pturmel

but it would be great to have enable / disable feature.