The CasaTunes Command Line Utility (CasaCommand.exe) can be used to control CasaTunes from the command line, from either a local machine or from a remote machine.
The CasaTunes Command Line Utility is installed as part of CasaTunes 2.6, and is found in the C:\Program Files\CasaTools\CasaTunes2 folder. The documentation on how to use this utility is also installed, and can be accessed from the Windows Start Menu. Click on Windows Start->All Programs->CasaTunes and select the Command Line Utility Guide.
If you are an adventurous sort, you can also customize this utility by checking out the CasaTunes Web Services SDK, which includes the CasaCommand source code.