I've used Mike's method to build an Arduino-based system that automatically routes both DCS and TMCC trains.
Being able to build the command sequences rather than capture them would be very nice!
As far as intellectual property goes, no license is required to send commands to the TIU, and reverse-engineering a command protocol is not a violation either of the Copyright Act or the Digital Millennium Copyright Act.