Yep, this is possible with something simple like this applet:
event manager applet ssh
event none
action 1.0 cli command "enable"
action 2.0 cli command "ssh -l user 10.1.1.1" pattern "assword:"
action 3.0 cli command "mypassword" pattern ">"
action 4.0 cli command "show version" pattern ">"
action 5.0 cli command "exit"
You can also look at my more complex Tcl policy at http://www.cisco.com/assets/cdc_content_elements/docs/ios/eas/easy-shell.tar .