I'd like to take a look at your script.
Please attach or upload (e.g. to a file sharing site)all relevant details, requirements, work in progress and any related file(s)
For multiple files, it is often easiest to put them all into a compressed(i.e. zip) folder so you only have upload one item.
PS An easy file sharing site to use is wikisend.com.Go to www.wikisend.com and upload the file there (no need to sign up). You will then get a page that has the File ID and Download Link. Copy either the File ID (a 6-digit number) or the Download Link.Then come back here and paste it in your reply.
I'm sorry,After reviewing the question, I regret that I won't be able to assist you at this time.
I am opting out and opening the question up to other professionals here who may be able to help.