code: public ProcBuilder withWorkingDirectory(File directory) {
          if (!directory.isDirectory()) {
              throw new IllegalArgumentException("File '" + directory.getPath() + "' is not a directory.");
          }
          this.directory = directory;
          return this;
      }
docs: Override the wokring directory
  @param directory the working directory for the process
  @return this, for chaining