Thank you for replying. Now we are getting a different error. I have attached the updated files.
I looked through the required files and didn't find reference to the function it is looking for so not sure where it is supposed to be.
We ran the script again to see if we would get anything different and didn't.