@Override
	protected void run() throws Exception {

		if (!isRunningHeadless()) {
			printerr("Script intended for Headless use only");
			return;
		}

		if (currentProgram == null) {
			printerr("Requires open program");
			return;
		}

		currentProgram.setTemporary(true);

		if (!processParameters()) {
			return;
		}

		Msg.info(this, "Disassmbly Output File: " + outFile.getAbsolutePath());

		PrintWriter out = new PrintWriter(outFile);
		try {
			disassembleRegion(out);
		}
		finally {
			out.close();
		}

	}
Required properties:
 min - minimum disassembly address or block name
 max - maximum disassembly address (not used if block name used for min)
 out - disassembly output file path

Optional:
 set.<context-reg-name>       - optional starting context value
 set.range.<context-reg-name> - optional context value over range
Ghidra/Features/Base/developer_scripts/RangeDisassemblerScript.java