"This will download and install all updates available for your Mac: sudo softwareupdate -i -a"
I'm assuming that it won't install App Store software that is in your account but not installed on the current machine? Which if so is a shame that Apple haven't exposed this via the command line (preferably specifying the name of the application to install).