Post authentication script?

Hi,

I'm trying to login to a Cisco device as the following example:
Credentials:
username: cisco
password: cisco

Then, I want a post-authentication script to say
enable
password1

Of course, those aren't actually my details, but still.. I've tried just creating a text document with what I want too, to no avail