CommandLineClient doesn't upload the code behind file to the scheduling database thus the test fails immediately. The workaround is to run the test once through Test Studio. It will upload the entire project (including the code behind file) to the database. After that you can execute the test in the CommandLineClient.