The script is available for download from http://gallery.technet.microsoft.com/How-to-set-SharePoint-Pool-314dd031. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
The goal of this script is to set SharePoint application pool identity in IIS Pool.
When we change the IIS Pool identity password, the site will not be visited unless we reset the identity. This idea is to reset the identity for all SharePoint application pools.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery