scriptsentry.ps1
From GitHub: ScriptSentry finds misconfigured and dangerous logon scripts.
Run script and save output to a file called ScriptSentry.txt
Import-Module Invoke-ScriptSentry.ps1
Invoke-ScriptSentry | Out-File c:\temp\ScriptSentry.txt