This makes the ModuleIntrinsics.GetModulePath function call add the directory c:\users\<username>\.nuget\packages\system.management.automation\6.1.1\runtimes\win-x64\lib\netstandard2.0\Modules to the $env:PSModulePath, rather than the expected C:\Windows\System32\WindowsPowerShell\v1.0\Modules directory.
This makes the
ModuleIntrinsics.GetModulePathfunction call add the directoryc:\users\<username>\.nuget\packages\system.management.automation\6.1.1\runtimes\win-x64\lib\netstandard2.0\Modulesto the$env:PSModulePath, rather than the expectedC:\Windows\System32\WindowsPowerShell\v1.0\Modulesdirectory.