When we execute file in Linux, usually when it's shared from Windows environment, usually it thows an error like
/bin/sh^M : bad interpreter.
The simplest solution is:
1. Open that file with
2. Change to command mode (ESC) then type
It's done :D