The script is available for download from https://gallery.technet.microsoft.com//How-to-rebuild-icon-cache-d2d22a24. 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 VBScript shows how to rebuild icon cache in Windows 8.1.
Sometimes users encounter the issues that an icon are 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