I was working in a large 100+ SQL server web farm with many environments and clusters, and when a server restarted, I had no way of knowing where it was.
SO....
I wrote this script and created a job that would be scheduled to run at start up. It would not only notify me via email that it started, but it would place the information in the application event log so that Microsoft System Center Operations Manager (SCOM) could see it.