Is there a way to verify script / test it, other than the Terminal?
look this:
http://forum.mikrotik.com/t/how-to-debug-a-script/115146/5
Thank you.