scriptsentry.ps1
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