Usually that error message means Linux doesn’t recognize the file as a shell script or as an executable file.
Typically the cause is running an executable on the wrong architecture - if you try to run x86 executables on an ARM CPU, this message comes up.