Neat little script and works perfectly. Modified it a little bit to delete the old copy instead of backing it up as I really saw no need for that feature on my end.
Think with a little bit of applescript one could:
Wait for the new updates window.
-> if shown then download and install
-> if not shown then
-> do nothing
Thanks for sharing!