Provisioning a SharePoint 2013 Farm SharePoint Service Applications

This is the SharePoint 2013 version of the post I put up a few hours ago about SharePoint 2010 service applications.

The database names are still hard-coded.  Please, feel free to take this and make it better by creating variables for those dbnames