...
I am (possibly) struggling to get verbose ouput from bash when using a file despite using "set -x". I have added a shebang to specify bash so I don't think that's it. I did wonder if it was due to an underscore in the parameters.
The above can be worked round by using /bin/bash as a command task rather than a shell task. I am still unsure why this is needed but some places on the internet suggest that the script task is ignoring the shebang and not using bash.