I would like to know how to send text and commands to Counter-Strike. It could be good when checking the time and stuff like that.

What i want to know is:
How to send commands to CS, like echo "the time time_var"
and time_var would be changed each second from the app to the current time on the computer.

Is this possible?