共用方式為


When Your Custom Cmdlets Don’t Show Up After Loading with Add-PSSnapIn…

 

… make sure that your Cmdlet’s class has a default constructor.  (Note to self: “Duh.”)