Terraform pass variable as powershell parameter give error creating SSM document: InvalidDocumentContent: JSON not well-formed

in terraform AWS ssm document when pass variable as powershell parameter it gave error of creating SSM document: InvalidDocumentContent: JSON not well-formed.
While same is working on other projct.
snap attach for refferance.