The script is available for download from https://gallery.technet.microsoft.com//How-to-find-SQL-Server-492a7aab. 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 T-SQL script will demo how to find SQL Server database restore information.
As many people asked how to find SQL Server database restore information, this script will offer some help in this regard.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery