Shell scripting problems - Commands not on local machine

Hello all-

I have done a lot of searching tonight, but all leads seem to be dead ends. Forgive me if this has been covered, but I've searched the forum and the internet. I am having trouble building a shell script which uses SSH to login to our schools 1024 cluster grid. The issue that I am having is that I need the script to load MATLAB, using the basic functions:

$module load matlab

$matlab -nodisplay -nosplash -r simulations_sep_07

I can SSH into the remote machine just fine, and execute a script. However, I result in:

./Run_Simulation.sh: 8: module: not found
./Run_Simulation.sh: 10: matlab: not found

I have checked my path repeatedly, and know that I am in the working directory on the remote pc, the code appears to check the local pc for command validity.
I can run the script directly on the remote pc, and the script runs fine. Is there any way of getting this to work?

My files are all rsynced from my local machine, to the remote machine, and the command is set to SSH in and run a script to start the algorithm.

Any help would be great, it's about 4 AM, and this problem has beaten me for the day.

Thank you in advance, this forum has been very helpful as a learning tool.

Give the full path to command module and matlab in your script.