title: AWS EC2 RunCommand parsing issue
body: <p>When I try to use the shorthand for this it fails with the following error. I'm obviously not escaping correctly but I can't seem to work out how to do so. It happens in PowerShell and Command Prompt.</p>
  
  <blockquote>
    <p>Unknown options: ) aws s3 cp s3://sourcebucket/file1.csv
    /opt/local/file1.csv;docker exec $(docker ps | grep "solr" | cut -f1
    -d" ") aws s3 cp s3://sourcebucket/file2.csv /opt/local/file2.csv;curl <a href="http://localhostreloadfiles" rel="nofollow noreferrer">http://localhostreloadfiles</a>' --timeout-seconds 600 --region eu-west-10</p>
  </blockquote>
  
  <p>Shorthand invalid:</p>
  
  <blockquote>
    <p>aws ssm send-command --document-name "AWS-RunShellScript" --targets
    Key=tag:Name,Values=instancename --parameters commands='docker exec
    $(docker ps  grep "solr" | cut -f1 -d" ") aws s3 cp
    s3://sourcebucket/file1.csv /opt/local/file1.csv;docker exec $(docker
    ps | grep "solr" | cut -f1 -d" ") aws s3 cp
    s3://sourcebucket/file2.csv /opt/local/file2.csv;curl
    <a href="http://localhostreloadfiles" rel="nofollow noreferrer">http://localhostreloadfiles</a>' --timeout-seconds 600 --region eu-west-10</p>
  </blockquote>
  
  <p>JSON input valid:</p>
  
  <blockquote>
    <p>aws ssm send-command --document-name "AWS-RunShellScript" --targets
    Key=tag:Name,Values=instancename --parameters '{\"commands\":[\"docker
    exec $(docker ps | grep \\"containername\\" | cut -f1 -d\\" \\")
    bash -c ''aws s3 cp s3://sourcebucket/file1.csv
    /opt/local/file1.csv''\",\"docker exec $(docker ps | grep \\"solr\\"
    | cut -f1 -d\\" \\") bash -c ''aws s3 cp s3://sourcebucket/file2.csv
    /opt/local/file2.csv''\",\"curl <a href="http://localhost/reloadfiles" rel="nofollow noreferrer">http://localhost/reloadfiles</a>\"]}'
    --timeout-seconds 600 --region eu-west-1</p>
  </blockquote>
  
  <p>The guide and walkthrough both suggest it's possible and I'd like to make it much more readable and understandable for my team.</p>
  
  <p><a href="http://docs.aws.amazon.com/cli/latest/reference/ssm/send-command.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/cli/latest/reference/ssm/send-command.html</a>
  <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/walkthrough-cli.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/walkthrough-cli.html</a></p>