After different reviews of this functionality on the web, I decided to create my own script to wake up SharePoint sites. This script can be enhanced with all your suggestions.
By default, when you restart your server or for example IIS, all the pages have to be recompiled. This time can be disturbing for an end-user. This script solves this issue.