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.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…