I have the following variable that contains other variables:
$jsontemplate = @"
{
"jsonrpc": "2.0",
"method": "trigger.update",
"params": {
"triggerid": "$($zabbixtriggerid)",
"status": 1
},
"id": "$($zabbixAuth.id)",
"auth": "$($zabbixAuth.auth)"
}
"@
$($xxx.yyy) format works fine if I run the script manually but I cannot use it because the program that runs the script uses tokens in $() format to insert strings into powershell scripts and will go crazy. Any other way to achieve the same effect? When I use just $xxx.yyy format, .yyy part gets ignored. It gets interpreted only when I use $() format.