I have written my own PowerShell cmdlet, which also works. I would like to execute code when the module is loaded, to check various tasks. How can I execute code when PowerShell is loading the module? Does anyone have an example?
Many thanks for the help
Moved byCoolDadTxMonday, November 26, 2018 3:01 PMPowerShell related
This question is better suited for the PowerShell forums, not C#. They can explain to you how module loading works and how to execute code when the module is loaded. This isn't really specific to C#.