You can use PowerShell cmdlet Get-ChildItem to print all the environment variables available in your current PowerShell session. Here is a quick example for your reference –
1 2 |
## Get all the variables available in current session Get-ChildItem env:* | Sort-Object Name |