我想在Powershell中设置名称为点的环境变量。 这行抛出错误:
$env:Test.Env.Var1 = "test111"
The property 'Var1' cannot be found on this object. Verify that the property exists and can be set.
At line:1 char:1
+ $env:Test.Env.Var1 = "test111"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
是否可以在不使用[Environment]::SetEnvironmentVariable
方法的情况下设置“ Test.Env.Var1”变量?