Powershell replace double quotes with single in a string

powershell

Solution

It should be

$appendedQry = $appendedQry -replace '"',''''

Problem

I just can't get it right The below statement throws an exception and I cannot get the correct format ``` $appendedQry = $appendedQry -replace "\"","'" ``` What would be the correct syntax?

Original source