UPS monitor script crashes entire routerboard

If I try to run the UPS Monitor script from the Wiki it crashes the routerboard so hard I have to power cycle it to get back into it.

http://wiki.mikrotik.com/wiki/UPS_scripts

The Routerboards are brand new RB493G running 5.4.

I cannot get any supout as the board is completely hung.