$farm = Get-SPFarm $file = $farm.Solutions.Item("MySolution.wsp").SolutionFile $file.SaveAs("c:\temp\MySolution.wsp")