For downloading manually you could for example use "gene search" and select a term/gene id and the genomes you want to search against.
For automatic download I tried the API that was refered to above, but I am not sure if it is for IMG data or only JGI genome portal.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
They have a poorly documented API.