code: public static int executeCommand(
  			final Logger logger,
  			final List<String> command,
  			final File workingDir,
  			final Map<String,String> environmentVars,
  			final String applicationName,
  			final String scopedInstanceName)
  	throws IOException, InterruptedException {
  
  		return executeCommand( logger, command.toArray( new String[ 0 ]), workingDir, environmentVars, applicationName, scopedInstanceName);
  	}
docs: Executes a command on the VM and prints on the console its output.
  @param command a command to execute (not null, not empty)
  @param environmentVars a map containing environment variables (can be null)
  @param logger a logger (not null)
  @throws IOException if a new process could not be created
  @throws InterruptedException if the new process encountered a process