In windows CMD, I want to run a powershell script and pass string params, which have quotes and ampersands in the params.
U:\Desktop>PowerShell .\post "http://domain/api/app?pLanguage=en-US\"&\"pCompanyID=816" "{\"Message\":\"test message - please ignore\"}"
The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
'\"pCompanyID=816"' is not recognized as an internal or external command,
operable program or batch file.
How can I fix this issue?