Handle loading of .net module into PowerShell
问题 I have an .NET assembly that will get imported by a Powershell session using: Import-Module MyAssemblyFirst.dll What I need is to automatically load another custom assembly ( MyAssemblySecond.dll ) that I know about when MyAssemblyFirst.dll gets imported. The scenario I am looking for is: Import-Module MyAssemblyFirst.dll Import-Module MyAssemblySecond.dll but I would rather like to have only one Import-Module call: Import-Module MyAssemblyFirst.dll ...and somehow to trigger loading the