What kind of help would you expect? Did you try to search for it? I’m pretty sure you’re not the first one with such a kind of task. 😉
This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.
We expect you to make an own attempt to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.