docs: public static void writeScriptFile(
              InputStream stream,
              String scriptString,
              Reader reader,
              LineEndingStyle style,
              File scriptfile
      ) throws IOException
      {
  
          try (FileWriter writer = new FileWriter(scriptfile)) {
              if (null != scriptString) {
                  ScriptfileUtils.writeReader(new StringReader(scriptString), writer, style);
              } else if (null != reader) {
                  ScriptfileUtils.writeReader(reader, writer, style);
              } else if (null != stream) {
                  ScriptfileUtils.writeStream(stream, writer, style);
              } else {
                  throw new IllegalArgumentException("no script source argument");
              }
          }
      }