For testing purposes as the Casse, I'm pretty sure you will find this small executable very useful
http://www.usaupload.net/d/ueyssz5v6jm

It's an autoclick program you start it set it to unlimited and the interval at something like 30 secs than you can position the mouse over the end turn button and let it autoplay. The only thing that stops it are adoption events so you'd need to check on it from time to time but it sure helps that you don't have to click end turn and be around the computer for too long.

The -ai switch doesn't work cause you can't start the script, you can use this with the -ne switch to leave the game in windowed mode too.