title: aws ssm send-command not working with special characters
body: <p>I am able to send simple commands to some of my Amazon ec2 instances. For example:</p>
  <pre><code>aws ssm send-command --document-name &quot;AWS-RunShellScript&quot; --instance-ids &quot;${instanceid}&quot; --parameters commands=[&quot;cd /home/ec2-user&quot;,&quot;mkdir -p test&quot;]
  aws ssm send-command --document-name &quot;AWS-RunShellScript&quot; --instance-ids &quot;${instanceid}&quot; --parameters commands=[&quot;cd /home/ec2-user&quot;,&quot;sudo chmod 777 test&quot;]
  </code></pre>
  <p>I can also echo text to a sample file:</p>
  <pre><code>aws ssm send-command --document-name &quot;AWS-RunShellScript&quot; --instance-ids &quot;${instanceid}&quot; --parameters commands=[&quot;cd /home/ec2-user&quot;,&quot;echo thisvalue = temp &gt;&gt; test/sample.txt&quot;]
  </code></pre>
  <p>However, if I use a bracket as part of the command / text, for example:</p>
  <pre><code>aws ssm send-command --document-name &quot;AWS-RunShellScript&quot; --instance-ids &quot;${instanceid}&quot; --parameters commands=[&quot;cd /home/ec2-user&quot;,&quot;echo [default] &gt; test/sample.txt&quot;]
  </code></pre>
  <p>I get the following error:</p>
  <p>Error parsing parameter '--parameters': Expected: ',', received: '&gt;' for input:</p>
  <p>When the text is wrapped in brackets [] the issue is thrown. Therefore, the question boils down to: how am I able to pass 'special' characters through the aws ssm send-command function?</p>