The script shall be simple. Could be as few as three lines. I gave you two essential lines to do the update already. Plain shell command line. No Vyatta CLI required.
To schedule a cron job in EdgeOS, you can make use of its CLI. It's known as task-schedule under system. It's a one off effort.
I get your point to ask Ubnt for such a feautre..