code: public static Expect4j spawn(String cmdLine, String[] envParams) throws Exception {
          String[] cmdArgs = cmdLine.split(" ");
          return spawn(cmdArgs, envParams);
      }
docs: Spawns a local process with the input/output streams controlled
  via Expect4J.  The command line provided is broken into multiple
  arguments by whitespace.
  
  @param cmdLine a specified system command
  @param envParams array of strings, each element of which has
  environment variable settings in the format
  <i>name=value</i>, or {@code null} if the
  subprocess should inherit the environment of the
  current process.
  @return the controlling Expect4j instance
  @see Runtime#exec(String, String[])