Easy way to mass upgrade firmware?

A few tiny tweaks to help see the progress path taken in the log file later.
Cheers

:log info "SCRIPT -- Autoupdate - start"
:global FWstatus BLANK
delay 5
/system package update check-for-updates;:global FWstatus [/system package update get status]
delay 5
:if ($FWstatus = "System is already up to date")  do={:log info "SCRIPT -- Autoupdate - $FWstatus";/quit} else={}
:if ($FWstatus = "New version is available") do {:log info "SCRIPT -- Autoupdate - $FWstatus"}

system package update download
:global FWstatus [/system package update get status]

:if ($FWstatus = "Downloaded, please reboot router to upgrade it") do={:log info "SCRIPT -- Autoupdater downloaded first go";quit} else={}
:if ([:find $FWstatus "ERROR"] !=nil) do={delay 60;system package update download;:global FWstatus [/system package update get status];:log info "SCRIPT -- Autoupdate downloaded second go"} else={quit}
:if ([:find $FWstatus "ERROR"] !=nil) do={delay 120;system package update download;:global FWstatus [/system package update get status];:log info "SCRIPT -- Autoupdate downloaded third go"} else={quit}
:if ([:find $FWstatus "ERROR"] !=nil) do={delay 180;system package update download;:global FWstatus [/system package update get status];:log info "SCRIPT -- Autoupdate downloaded fourth go"} else={quit}
:if ([:find $FWstatus "ERROR"] !=nil) do={delay 240;system package update download;:global FWstatus [/system package update get status];:log info "SCRIPT -- Autoupdate downloaded fifth go"} else={quit}
:if ([:find $FWstatus "ERROR"] !=nil) do={delay 300;system package update download;:global FWstatus [/system package update get status];:log info "SCRIPT -- Autoupdate downloaded sixth go"} else={quit}
:if ([:find $FWstatus "ERROR"] !=nil) do={:log info "Autoupdate -  failed to download, continual errors";quit} else={quit}

:global FWstatus
:global POEstatus
:log info "SCRIPT -- Autoupdate_reboot - check started"
:if ($FWstatus = "Downloaded, please reboot router to upgrade it") do={:log info "SCRIPT -- Autoupdate_reboot - $FWstatus"} else={:log info "SCRIPT -- Autoupdate_reboot - $FWstatus";/quit}
:if ($POEstatus = true) do={:log info "SCRIPT -- Autoupdate_reboot - Delayed reboot";:delay 300;/system reboot} else={:log info "SCRIPT -- Autoupdate_reboot - Rebooting now";/system reboot}