The script i have is made for a Windows Server. I have a Linux server.
Your job is to make it compatible with Linux.
Let me know if you have any questions.