Powershell call msbuild with nested quotation marks

Short Version How do you pass an argument containing quotes into a native command from PowerShell? Use single quotes instead of double quotes in the argument string:    “/p:Target=’Data Source=(local)\SQL;Integrated Security=True'” → /p:Target=’Data Source=(local)\SQL;Integrated Security=True’ Use backslash-escaping for double quotes in the argument string∗:    ‘/p:Target=\”Data Source=(local)\SQL;Integrated Security=True\”‘ → /p:Target=”Data Source=(local)\SQL;Integrated Security=True” If the embedded … Read more