I guess it will be even more interesting to put the path of the publish settings file  and storage account credentails as cmd parameters. That can make this script more useful. This may beyond the scope of the original script.