initialization of     $Env:InTestRunInVirtualEnvironment = "True"
    $Env:InTestRunInMainHive = "True" moved to PowerOnRun