Summary: Learn how to find Windows PowerShell variables in various scopes.
How can I see what Windows PowerShell variables exist in various scopes?
Use the Get-Variable cmdlet and use the –Scope modifier (this can be global, local, or script), for example:
Get-Variable -Scope global