Howto: Invoking cmdlets from within a cmdlet…

PowerShell Team

A fairly common question cmdlet developers have is “How do I invoke a cmdlet from within a cmdlet”. This usually comes up when converting a script or function into a compiled cmdlet. Marco Shaw is writing a nice series of blog posts covering this topic using the PowerGadgets  cmdlets as examples. Check it out at:

(As an aside – we’re doing a bunch of stuff in V2 that will make this scenario both easier and more effective. It’s pretty cool! We’ll be releasing the details on this and other V2 features in November at ITForum.)



Bruce Payette

Principal Developer, Windows PowerShell Team



Discussion is closed.

Feedback usabilla icon