Note: All FlightGear I/O handled via Nasal and/or fgcommands, is subject to validation via IORules.
$FG HOME is generally accessible for writing:
var path = getprop("/sim/fg-home") ~ "/Export/test.xml"; io.write_properties(path, "/sim");