Interesting Script. :-)
But it is not a good practice,
Although you have described every thing about the script, You should create script dynamically because all organizations have different timings,
Scholars have to make changes in whole script according to their need and time gaps.
SQL DBA | MCP (70-461,70-462)
The greatest barrier to success is the fear of failure
** Success is a journey not a destination**
Think before you print, SAVE TREES, Protect Mother Nature