code: public static int executeCommand(
  			final Logger logger,
  			final String[] command,
  			final File workingDir,
  			final Map<String,String> environmentVars,
  			final String applicationName,
  			final String scopedInstancePath)
  	throws IOException, InterruptedException {
  
  		ExecutionResult result = executeCommandWithResult( logger, command, workingDir, environmentVars, applicationName, scopedInstancePath);
  		if( ! Utils.isEmptyOrWhitespaces( result.getNormalOutput()))
  			logger.fine( result.getNormalOutput());
  
  		if( ! Utils.isEmptyOrWhitespaces( result.getErrorOutput()))
  			logger.warning( result.getErrorOutput());
  
  		return result.getExitValue();
  	}
docs: Executes a command on the VM and logs the output.
  @param logger a logger (not null)
  @param command a command to execute (not null, not empty)
  @param workingDir the working directory for the command
  @param environmentVars a map containing environment variables (can be null)
  @param applicationName the roboconf application name (null if not specified)
  @param scopedInstancePath the roboconf scoped instance path (null if not specified)
  @throws IOException if a new process could not be created
  @throws InterruptedException if the new process encountered a process