The script is available for download in Microsoft Script Browser for Windows PowerShell ISE. You need to install the Script Browser application first, and search for the script sample title.
This VBScript shows how to get a user password expiration date in Active Directory.
Sometime users want to know when their password will expire. This script is to get the date without Active Directory Cmdlet.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery