How can I login in into Mac OS X 10.8 running inside Vmware Fusion 5

How can i simulate the user login operation with username and password in Mountain Lion 10.8 virtual machine running on VMware Fusion app. Can we simulate the login with applescript, if possible then sample applescript would help as i have limited knowledge of applescript. I needed this script urgently.