code: function exec (options, done) {
    const util = require('util')
    const cp = require('child_process')
    const toSpawnArgs = require('object-to-spawn-args')
    const config = require('./lib/config')
    const cmd = util.format(
      '"%s" %s',
      config.HandbrakeCLIPath,
      toSpawnArgs(options, { quote: true }).join(' ')
    )
    cp.exec(cmd, done)
  }
docs: Runs HandbrakeCLI with the supplied [options](https://handbrake.fr/docs/en/latest/cli/cli-guide.html#options) calling the supplied callback on completion. The exec method is best suited for short duration tasks where you can wait until completion for the output.
  
  @param options {Object} - [Options](https://handbrake.fr/docs/en/latest/cli/cli-guide.html#options) to pass directly to HandbrakeCLI
  @param [onComplete] {Function} - If passed, `onComplete(err, stdout, stderr)` will be called on completion, `stdout` and `stderr` being strings containing the HandbrakeCLI output.
  
  @example
  ```js
  const hbjs = require('handbrake-js')
  
  hbjs.exec({ preset-list: true }, function(err, stdout, stderr){
  if (err) throw err
  console.log(stdout)
  })
  ```
  @alias module:handbrake-js.exec