Using a Cscript you can control the Simulation in Caspoc. All you need is to define a Cscript file using ANSI-C where you define what actions should be taken to control the simulation.
Store this file with a ".cs" extension in the project directory belonging to your simulation file.