Cleaning up merged git branches
I translated this into PowerShell
git branch --merged | Select-String -Pattern "main" -NoMatch | ForEach-Object { git branch -d $_.Line.Trim() }
First part is still the same. Second part leverages Select-String since grep isn't a default Windows tool. xargs is how Linux-based systems iterate over piped contents, so we translate that to ForEach-Object.
