Importing Modules using -AsCustomObject

I recently got thinking about the -AsCustomObject switch for the Import-Module cmdlet. I have seen it several times in discussions of implementing “classes” in PowerShell. Here’s a typical (i.e. trivial) example: With that module, we can do the standard module stuff: Ok, that was way too basic. Here’s something a lot closer to the topic …

Continue reading ‘Importing Modules using -AsCustomObject’ »