code: function runCapturingProcess(options, config, outputFile, base64, onFinish) {
      const scriptFile = utils.filePath(SCRIPT_FILE),
            command = cliCommand(config).split(/[ ]+/),
            cmd = _.union(command, [scriptFile, base64, outputFile]),
            opts = {
                timeout: config.timeout
            };
  
      logger.debug(
          'Options for script: %s, base64: %s, command: %s',
          JSON.stringify(options), base64, JSON.stringify(cmd)
      );
  
      utils.execProcess(cmd, opts, (error) => {
          if (config.compress) {
              minimizeImage(outputFile, config.storage, () => onFinish(error));
          } else {
              onFinish(error);
          }
      });
  }
docs: /* Screenshot capturing runner