PowerShell Code to deploy solutions (WSP) :-
PowerShell to deploy the WSP to the GAC on server and deploy to all URLS
Add-SPSolution -LiteralPath $path
install-spsolution -Identity $solution -GACDeployment
PowerShell to deploy the WSP to the GAC on server and deploy only to 1 specific web application (not in bin folder)
Add-SPSolution -LiteralPath $path
install-spsolution -Identity $solution -WebApplication $oURL -GACDeployment
PowerShell to deploy to specific webapplication at bin folder on server
Install-SPSolution -Identity $solution -WebApplication $webApp
PowerShell to deploy to all the webapplication at their bin folders on server
Install-SPSolution -Identity $solution -AllWebApplications