Your script should work, but definitely try using the -e flag and the 'source' command instead of the < char as a matter of best practice.
Chances are, the script is running as a different user than you are, and doesn't have command line permission to run your command. Check user permissions.