“source” in shell script

“source” command cannot work in shell script.

Instead:

$source the shell script file;

will work.  Or

$. shell-script-file

should work.