Closed bsmithvt closed 5 years ago
Looks like it's possible to export a variable instead of setting a global like this: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/export-modulemember?view=powershell-6#description
@ctediz, I'll read up on it later, but do you know off hand if one approach preferred over or are there any differences?
@ctediz, I'll read up on it later, but do you know off hand if one approach preferred over or are there any differences?
Thinking of it now I'm not sure, since module seem to stay in scope so it may end up being the same in the end. @miketabet Thoughts?
…cripts