Automating the world one-liner at a time…
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.)
Principal Developer, Windows PowerShell Team
PingBack from http://www.artofbam.com/wordpress/?p=3113
You've been kicked (a good thing) - Trackback from DotNetKicks.com
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.