in reply to problems calling bash script

What does doesn't run properly mean?

Is that the same as "didn't run at all"?
Was there an error message?
Did you check $?
Was the output different to that expected?

It is generally easier/possible to determine the solution when we know what the problem is.