Help with shell scirpting

Hello,
I am new to scripting of any kind and kind of new to Linux. I am trying to create a script that will launch a program, enter my username and password, and then hit OK. I have the first to steps down, but I can't figure out how to make it hit OK. Once the program launches, I can manually hit "ALT+O" to signify OK, but I want the script to do that. Any help is appreciated. Here is what I have so far:

#!/bin/bash
cd ~georget/program
./run.sh -username blahblah -password "blahblahblah"

thank you for any help,
georget

BASH scripting cannot automate a graphical password entry. Very little can. It's intentionally difficult to capture or inject keystrokes.

Usually, there are alternate methods to automate this sort of thing, but we don't know enough about your situation to make suggestions.

You do realize that putting the username and password in parameters will make them visible to anyone on the system?