The version with batch script in test_client_agent