code: public static File createTempFile(final Framework framework) throws IOException {
          String fileExt = ".tmp";
          if ("windows".equalsIgnoreCase(framework.createFrameworkNode().getOsFamily())) {
              fileExt = ".tmp.bat";
          }
          final File dispatch = File.createTempFile("dispatch", fileExt, new File(framework.getProperty(
                  "framework.tmp.dir")));
          registerTempFile(dispatch);
          return dispatch;
      }
docs: Creates a temp file and marks it for deleteOnExit, to clean up proactively call {@link #releaseTempFile(java.io.File)} with the result when complete
  
  @return Create a temp file in the framework
  @param framework  fwk
  @throws IOException on io error