VS 2010 is not supported anymore.
VS 2013 is supported but there is no automated downloader. You'll have to write your own. You could use Powershell for that if you wanted. Personally I would recommend that you download the edition you want and place it somewhere on your local network. Access to the installer and its URL is not guaranteed and it is almost unsupported so it'll be gone in a few years anyway. Putting it locally eliminates this issue.
Once you've copied the installer locally then you can run it using the available installer command line arguments to automate the installation. Here's an older link on the options available.