The script is available for download from https://gallery.technet.microsoft.com//How-to-find-out-stale-10fa6295. 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 can find out stale statistics of databases in SQL Server that may cause performance issues.
Some people ask how to find stale statistics for these statistics may cause performance issues. This PowerShell script will demo how to check stale statistics which have been updated for more than 1000 times in SQL Server 2008 R2 starting with Service Package 2 or SQL Server 2012 starting with Service Package 1.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery