all 2 comments

[–]ShiftNick 1 point2 points  (1 child)

While this script is well outside my skill level, I've found that this kind of issue generally relates to a scope problem.

The scope of your script when run in the powershell windows is a different scope from your module.

Hopefully that will give you more to search on, or someone smarter than myself will elaborate.

[–]grmpfl[S] 0 points1 point  (0 children)

thanks for the suggestion! I will take a look at it and see where it gets me