I want to update multiple wsp solutions using powershell
Currently for every wsp file I have a powershell file with the below code
Update-SPSolution -Identity CustomWebparts.wsp -LiteralPath $PSScriptRoot\CustomWebparts.wsp -GACDeployment
I run the powershell and wait for deployment to happen and then run the next powershell script
How can I avoid this and deploy all wsp files in the folder using powershell?