The following script uses two command (WaitFor and SendText) to perform the bare minimum tasks required to perform a scripted login.
This script could go in the login script location in Options->Properties->Scripts section if this script is specific to the session file you currently have open. It could also go in Options->Properties->Global as the global login script if all of your logins are always performed the same. To implement in your environment, make sure that the 'WaitFor' Functions are waiting for the proper strings. Login prompts vary somewhat from system to system.
The drawback to the script above is that if the login prompts never come, the script waits forever! A smarter login script might resemble the script below. It implements a fixed amount of time to wait for the prompts, then uses the return code of the Wait to determine whether or not to proceed. The VBScript MsgBox function is used to alert the user to possible problems.
success = Terminal.WaitForTimeout ("login:" ,5000)
if success = TRUE then
success = Terminal.WaitForTimeout("Password:", 5000)
if success then
MsgBox "Timed out waiting for password prompt"
MsgBox "Timed out waiting for login prompt"