Help with shell script to run the commands reading options from local file

I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file.
Process:
Connecting to remote unix server <host1.ibm.com> through ssh
Login: <username>
Password: <password>
cd /opt/ibm/websphere/appserver
chmod -R 775 bin
chmod -R 770 config
...........................
...........................
...........................
chmod -R 777 logs (changing the file permissions for the files listed in the options.txt file)

options.txt has the following lines
775:bin
770:config
...............
...............
...............
777:logs

I want a shell script to accomplish the above task. It may be really simple to write a script for this but I am very new to scripting. Thank you in advance for your replies.

Will the options.txt file be on local or remote host?

BTW, why do you want to modify the default permissions on the websphere subdirectories? If you are running websphere as a non-root user, you should just 'chown -R' the /opt/ibm/websphere directory to that user and leave the default permissions alone. Also, if you're running this on a production host, I definitely would not set the logs directory to 777. This is just inviting a DoS attack or for someone to alter the logs if the system is exploited.

-B

The options file is local, at this time changing the file permissions is just for example purpose, I want to run other commands similar to chmod by reading the options from the local file. If I can get help in this regards it will be great help.