title: How to pass string as parameter to API from powershell within API Body
body: <p>I am trying to pass multi line string as parameter to API from powershell. But the FromBody in API reads the parameter as null.</p>
  
  <p>Below is my powershell script: </p>
  
  <pre><code>$obj = "{""TestCase"":{"
  $obj = $obj + "`n""tc_name"":TestCase1"""
  $obj = $obj + "}"
  $obj = $obj + "`n""}"
  
  $obj
  
  Invoke-WebRequest -Uri http://localhost:65452/api/e10/e10PostTCData -Method Post -Body $obj
  </code></pre>
  
  <p>Please advise.</p>