Hi,
I can write the script in bash real quick, I have experiencing automating tasks as a system administrator.
I'm looking forward working for you, if you have any questions please send me a message.
Thanks and regards,
Douglas.
-- Update
I've made a script that is functional, I can make it more error proof and better documented with some more time. Send me a message if you want to test it.