Why does my PowerShell code behave differently in a script than in the terminal?
This PowerShell command produces the expected single-line argument string when entered interactively, but when the same code runs from test.ps1, it only returns the final entry, --add Microsoft.VisualStudio.Component.WinXPStudioExtension.…