Well, you could start by putting what you typed in the terminal into your script.
The program is looking in present working directory for its files, so you must run the program from within that directory. Shell scripts use the same commands you type on the command line, the first line spawns a shell and pretty much dumps the contents of the file into it.
Yeah, there are two things I would like to start at boot:
This is needed every time on boot for Xkbd to be stable:
gconftool-2 --set -t bool /system/osso/af/keyboard-attached true && sleep 2 && gconftool-2 --set -t bool /system/osso/af/keyboard-attached false
&
xbindkeys
I never figured out how to do this so I usually try to never reboot.