I know I can access environment variables in PowerShell using $Env. For example, I can access FOO with $Env:FOO.
$Env
FOO
$Env:FOO
I can\'t figu
To access any kind of PowerShell variable where the name contains non-alphanumeric characters, use the ${…} notation as in:
${env:variable.with.dots} = "Hi there" ${env:variable.with.dots}
This works for variables in any drive (registry, filesystem, etc.)