If the script is doing something like generating an output in the working directory, it may generate different results each time you execute the script.
Just guessing because a few days ago it just happened to me and this kept me busy for a few minutes until I realised why the output was so different each time without doing any changes "apparently".
Above that, it could be a number of reasons why that's happening. It's difficult to guess if no details are given.
You might need to give us a bit more information to have much chance of helping you here, such as the code (wrapped in & tags) along with some sample output and any error messages.