Running .sh file from Applescript.

I am doing this on a old Mac Mini running 10.6.

I have a script that I made executable via Terminal.
My script starts with: #!/bin/sh (found that in an other forum)

In Applescript I write: do shell script “/Users/ganesh/Desktop/xyz-Script.sh”

I get the following error: error “Invalid input!” number 1

What do I do wrong?

Could you post the entire scripts? It may be something else, elsewhere in the code. What you’ve shown here seems ok.

What is the real name of the script file ?
If it embed a space (or an other special character) I am not surprised by the returned error.
In such case, quoted form of is your friend.

do shell script quoted form of "/Users/ganesh/Desktop/x y z-Script.sh"

Yvan KOENIG running High Sierra 10.13.4 in French (VALLAURIS, France) mardi 8 mai 2018 15:47:13