I got tired of allways typing a very long -LiteralPath in my PowerShell cmdlets. So I went out on the Internet to visit Google and found this command. Get-Location, or even shorter, the alias gl. $curdir = gl Add-SPSolution -LiteralPath $curdir"\SharePointSolution.wsp"