The script you are asking for is easy enough to create, the important question is what version of Powershell is in your environment? Will this be deployed to individual machines or a server?
The time frame I propose is because I already have a script which will accomplish this task, I use something similar in my work environment.
If I am not chosen then I hope your task gets completed successfully.