The script is available for download from https://gallery.technet.microsoft.com//How-to-rebuild-icon-cache-59998924. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This PowerShell Script shows how to rebuild icon cache in Windows 8.1.
Sometimes users encounter the issues that an icon is changed to a different random icon, several icons are drawn on top of each other or an icon becomes all black and so on. This script will help users to fix that.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery