How Do I Add A Loop To The Command Tree?

How do I add a loop to the Command Tree so as to constantly execute a series of I2C commands and messages over and over again?
At the moment this can be done using a script. Sending master messages with a script and the I2C.NET API is quite simply.