code: public static CommandLine buildCommandLine(String executable)
      {
          CommandLine cmd;
  
          if (SystemUtils.IS_OS_WINDOWS)
          {
              String windowsExecutable = executable.replace('/', '\\');
              cmd = new CommandLine("cmd")
                      .addArgument("/c")
                      .addArgument(windowsExecutable);
          }
          else
          {
              cmd = new CommandLine(executable);
          }
          
          return cmd;
      }
docs: Build an OS dependent command line around the given executable name / relative path.
  On Windows, the '/' file path separator in the executable are replaced with '\'.
  @param executable - the executable name or relative path
  @return - the command line tailored to the current OS