Jason Scheuerman from my company has created a PowerShell Cmdlet Visual Studio 2005 Template so you can create PowerShell Cmdlets using File|Add New Item.
In the screenshot at right, I've select File|Add New Item and entered get-thing.cs as the name of my new Cmdlet.
If you want to use this Item Template, drop this zip file into your C:\Documents and Settings\<YourUserNameHere>\My Documents\Visual Studio 2005\Templates\ItemTemplates.
Don't unzip it, just put the ZIP itself in that folder.
You can learn more about creating Cmdlets (they're different from PowerShell Scripts (PS1 files) in that they can integrate more tightly with the pipeline and they can use parameter binding) at MSDN.
There's more about the difference between Cmdlets and scripts in my interview with Jeffrey Snover at Hanselminutes.com.
Ads by The Lounge