PowerTip of the Day, from PowerShell.com:
Show-Command Creates PowerShell-Code for You
In PowerShell 3.0, there is a cool new cmdlet called Show-Command:
PS> Show-Command Get-Process
It works both in the console and the ISE editor, and when you specify a cmdlet, a dialog window opens and shows a form that helps you discover and fill in the cmdlet parameters. Once done, click Copy, then Cancel, and the complete command line code is available from the clipboard. To insert it into the console, for example, simply right-click.
The dialog window produced by Show-Command also shows the different parameter sets (groups of parameters) a cmdlet supports, so you never again run into issues where you accidentally mix parameters from different parameter sets.