Welcome to MSDN Blogs Sign in | Join | Help

Howto: Invoking cmdlets from within a cmdlet...

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

 

Published Wednesday, September 26, 2007 6:16 PM by PowerShellTeam
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Techy News Blog » Howto: Invoking cmdlets from within a cmdlet…

# Windows PowerShell :Invoking cmdlets from within a cmdlet...

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Thursday, September 27, 2007 1:28 PM by DotNetKicks.com

# re: Howto: Invoking cmdlets from within a cmdlet...

I just read Marco Shaw's blog and the PowerShell SDK on invoking a cmdlet from a cmdlet and can get neither to work. Marco's is incomprehensibly clever and the SDK never tells you what assembly to include to get their example of GetProcCommand. Take pity on us beginners and put together a clean example.

Thursday, April 17, 2008 8:16 PM by Jim McGill

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker