!in the shebang.
# !/bin/sh echo "Hello World"
#!/bin/sh echo "Hello World"
The script has spaces between the
! in the shebang. This is not valid.
Remove the spaces so the OS can correctly recognize the file as a script.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.