run script in bash and chmod the script before attempting to run it.