Welcome to FreeSoftwareServers Confluence Wiki
I found this very helpful to run at the end of a script to see what was going on!
Get-Variable