How to automatically uninstall a module before running a Nightwatch test?
I ended up using the Node exec command to call drush like this:

module.exports = {
  '@tags': ['picostat'],
  before: function(browser) {
    const { exec } = require("child_process");
    exec("drush pmu recaptcha")
  },
  'Check a dataset was likely created correctly.': (browser) =&gt; {
    browser
      .drupalRelativeURL('/node/add/dataset')
      .waitForElementVisible('body', 2000)
      .assert.containsText('body', 'Create Dataset')
      .setValue('#edit-title-0-value', 'Test Dataset')
      .click('#edit-field-dataset-input-method-file')
      .click('#edit-field-dataset-header-false')
      .setValue('input[name="body[0][value]"]', 'Test dataset body')
      .end();
  }
};