title: Powershell - add variables inside a json string
body: <p>I have the following json code in my powershell script.
  I set the $variable to 1111111111</p>
  
  <pre><code>$jsonfile = '{"Version": "2012-10-17","Statement": {"Effect": "Allow","Action": "sts:AssumeRole","Resource": "arn:aws:iam::$variable:role/xxxxxx"}}'
  </code></pre>
  
  <p>The output gives ....arn:aws:iam::<strong>$variable</strong>:role/xxxxxx..... instead of ....arn:aws:iam::<strong>1111111111</strong>:role/xxxxxx</p>
  
  <p>The problem is that I must use the single quote for the json string otherwise I will get an error. If I use single quote I wont be able to put the variables inside the string. How do I workaround this problem? </p>