PowerShell : How to call the PowerShell commands (cmdlet) through the use of design patterns (factory, strategy,...)