Initial version from my blog post

http://www.technologytoolbox.com/blog/jjameson/archive/2011/03/01/script-to-restart-sharepoint-2010-services.aspx
Combine script for restarting SharePoint

Evidently I never blogged about the fact that I combined the scripts to
support both MOSS 2007 and SharePoint 2010