Script to update RouterOS after X days of release

Ehm… no…

Read my posts and use them as examples…
http://forum.mikrotik.com/t/rextended-fragments-of-snippets/151033/1
(do not post directly on that topic, follow the links and use the other topic)