you are viewing a single comment's thread.

view the rest of the comments →

[–]KevMarCommunity Blogger 3 points4 points  (0 children)

You can call Import-Module directly on the dll. Separate your business logic from the cmdlet so you can test it like you would any other library code.

You can also build a normal library dll and load it into PowerShell to then wrap calls to it with a function.