I created a pipeline in Jenkins where I am passing AWS CLI commnads to start and stop windows services. below is my command commandId=$(aws ssm send-command --document-name "AWS-RunPowerShellScript" --instance-ids "$id1" --parameters commands='Get-Service -Name User Profile Service' --timeout-seconds 600 --region $Region --query "Command.CommandId" --output text)
when i am running the above command,getting the below error Error parsing parameter '--parameters': Expected: ',', received: '"' for input:
I think spaces in my service name causing the issue. I tried with double quotes but not working.
Please suggest how to resolve this