Here is an excerpt from “PowerShell for SharePoint 2010 How-To,” by Steven Mann. The excerpt covers chapter 2: PowerShell Basics.