Executing shell script in console

I would like to create a 200+ symbolic links in my WP uploads directory with a simple shell script. I can create them one at a time in the console, but I don’t seem to have permissions to run the script. Is there a way I can do that? Is this a bug or a feature of the console? With sftp I set the script as executable, and I am logged in as the server master.