static file(filename, options) {
    filename = pa.resolve(filename);

    if (!fs.existsSync(filename)) {
      throw new VMError(`Script '${filename}' not found.`);
    }

    if (fs.statSync(filename).isDirectory()) {
      throw new VMError('Script must be file, got directory.');
    }

    return new NodeVM(options).run(fs.readFileSync(filename, 'utf8'), filename);
  }
Create NodeVM and run script from file inside it.

@param {String} [filename] File name (used in stack traces only).
@param {Object} [options] VM options.
@return {NodeVM} VM.