Basically if you run a script as I was doing, I was then checking if the job worked and it said no. I had to check on error code from the script.
But, there is another issue.
The script runs a backup job, even if the backup fails the script still finishes with a 0 which is not good.
Working on that issue now.