Ahh, looking back at the comments I think I now know the issue. I do not point to the full path of the domain list file in my script and I am willing to bet that's the issue.
Thanks again.
It was indeed the domains.txt file not having the absolute path. Error checking the file open made that clear. Guess I did not have enough coffee yesterday.
Thanks again