To run the script you would use:

Code:
bash <scriptname>.sh
I'm just going to look over your code in the PM and I will respond ASAP.