The answer is odd to me but I'm glad I found it.
My script generator was putting CR at the end of each line, and I found out that I needed LF instead.
So I changed that, and voila my script runs in Terminal just fine.
Thank you.
Das Goravani
Topic:
App & System Services
SubTopic:
Core OS
Tags: