It is possible to use so called scripted Telnet. There is multiple tools for this, but here is example of one of them:
http://jerrymannel.com/blog/2008/11/...-aka-tst10exe/
Basically, it connects to CoD server, executes a command and disconnects, so you can give CoD server a command from Windows Task Scheduler and so on.