This script shows how to remove invalid shortcut on the Start screen.
Sometimes when you uninstall software on your computer, even though the software is uninstalled successfully, it leaves some shortcuts that were created behind in your computer. These shortcuts do not work as the related softwares are uninstalled. Perhaps you move a file or a folder to a different location, the shortcut to that file or folder becomes invalid as it still points to the earlier location.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery