I am trying to automate a way to log in and do a set of specific commands to cisco equipment.

Is there a way that I can pass the username, password and commands through a telnet session?
_________________________
Today is the tomorrow you worried about yesterday.