SharePoint 2010 PowerShell scripts to install Web Parts and Features

For development you can use Visual Studio 2010  features (right click deploy) to install web parts and features, but once you get into testing/staging and production enviornemnts you can use the following script Web Parts POWERSHELL-SharePoint-WebPart.ps1 Add-PsSnapin Microsoft.SharePoint.PowerShell Write-Host "Initializing parameters" $featureAction=$args[3] $CurrentDir=$args[0] $solutionName=$args[1] + ".wsp" $webpartName=$args[1] $SolutionPath=$CurrentDir + "\" + …