You can use the Attachments feature when you answer the post.
Let me clarify, because it seems you did not catch it:
As per your description, if the script only fails one out of 10 times and the message is "cannot find [object]" I would review the logic in your enviornment. It is possible that the script is checking for an object too soon or checking with a different domain controller before replication.
Who wrote the script? That is probably the best chance for you to get this resolved. They can put it in DEBUG mode and step through it.