Take a look at the ACSF Tools (https://github.com/acquia/acsf-tools) project. It includes, among other things, a drush command to generate your alias file for you, as well as a drush command to run any other drush command against all sites in the factory (acsf-tools-ml).