Generic template for a TTAPI console application