September 26th, 2007

Howto: Invoking cmdlets from within a cmdlet…

PowerShell Team
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:

 http://marcoshaw.blogspot.com/2007/09/howto-invoking-cmdlets-within-cmdlet.html

(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

=========================================================

Bruce Payette

Principal Developer, Windows PowerShell Team

 

Category
PowerShell
Topics
CMDLETSDK

Author

PowerShell Team
PowerShell Team

PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.

0 comments

Discussion are closed.

Feedback