Using AppleScript inside shell script.

I want to attach a shell script to a package I am making. I need to use apple script in the shell script so I can set a user name and password for a command. I think this is close but I think I might be off on the punctuation. Anyone have any ideas?

[code]#!/bin/sh

osascript -e ‘do shell script sudo /usr/local/bin/OFPW -pass password’ user name “Administrator” password “password” with administrator privileges’

osascript -e ‘do shell script sudo /usr/local/bin/OFPW -mode 1 user name “Administrator” password “password” with administrator privileges’[/code]

Does this help any?

[code]#!/bin/sh

osascript -e ‘do shell script “/usr/local/bin/OFPW -pass password” user name “Administrator” password “password” with administrator privileges’

osascript -e ‘do shell script “/usr/local/bin/OFPW -mode 1” user name “Administrator” password “password” with administrator privileges’[/code]