The script is available for download from https://gallery.technet.microsoft.com//How-to-check-if-a-domain-2e45a2b4. 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 script sample can check if a domain user account has a blank password.
In the domain environment, IT admins usually sets password policies in the domain, but there is another possibility that domain accounts have the potential to login to the domain without a password, user accounts with empty password are more susceptible to attacks.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery