As far as I know, there is no API or other means for programmers and scripters to interact with the data stored in FTM (short of exporting it to GEDCOM, manipulating it, then importing it back in, which is generally not acceptable). Why there is no means of creating such a utility is likely the result of the differences in the target market for the software. TMG is geared for advanced genealogists. FTM is geared for beginning to intermediate family historians.
I also personally believe (from years of experience with bugs, oversights, and questionable decisions) that FTM is never tested with anything other than small trees. This decision to force people with large trees to manually click on thousands of family units and click the "sort by birth order" button is such an example.