Place the string in single quotes a double the embedded single quotes.
'Kjw''NhertyH)Blt0wFR|u/6mKn<}GH"'
A single quote escapes an embedded single quote.
\_(ツ)_/
Hi objectNotFound, as usual you have some options with some benefits and some restrictions
first thing proposed by jrv can be helpful for short lines, or lines that you providing from the keyboard,
other way that you can do similar things without string modification is using next construction
$string = @'
Kjw'NhertyH)Blt0wFR|u/6mKn<}GH"
'@
where you can store multi line text if you need as a single line
At the same time if you receiving this sting from external command (file or whatever) you do not need any additional actions
$string = Get-Content c:\string\with2typeQuotes.txt
The opinion expressed by me is not an official position of Microsoft