code: function checkSpawnSuccess(command) {
    // spawn expects a command and a separate array containing each argument
    const parts = command.split(' ');
    return spawnSync(parts[0], parts.slice(1), {stdio: 'inherit'}).status === 0;
  }
docs: Given a string containing a command and arguments, runs the command and returns true if it exits successfully. The command's I/O is piped through to the parent process intentionally to be visible in the console.