We have put together sample script to demonstrate how to manage group of routers on scale via scripts. The script is using encrypted and secure HTTPS protocol to transfer all data.
If you would like to use it in your application, please let us know.