crontab scheduled script error

The shebang that needs to be written includes an exclamation mark.

Try to write #!/bin/bash at the first line of your shell script.