To enable batch downloads from the commandline, MOLGENIS provides a EMX download tool. The tool can be downloaded from here. A readme providing basic usage and options is provided here.