I have this module that I import on the local system. When I run a script block using runspace on the local system as well , the function in that module are accessible in the runspace script block.
This module creates global variables. I tested if these global variables are also accessible from the script block running in run space. They all get returned by get-variable -scope global -name But then when I try to access these global from the script block , only some come through.
I could deal with this if all would not show up , or they all would show up. But that they all show up as being present , but then only some come threw as having content.
The goal is to have this module work in both contexts , local system and local system running in runspace.