title: Curl in PowerShell with custom cookie file
body: <p>The following <code>curl</code> command works fine in cmd:</p>
  <pre><code>curl -L -c ./cookie -b ./cookie -X POST -H &quot;Accept: application/json&quot; -s -d &quot;{\&quot;accountId\&quot;:\&quot;123456789\&quot;,\&quot;partition\&quot;:\&quot;abc\&quot;,\&quot;duration\&quot;:1234}&quot; https://testabc.com
  </code></pre>
  <p>When I try to run the same from PowerShell, I get the  <em><code>-c</code> is ambiguous</em> error. I tried replacing <code>-c</code> with <code>SessionVariable</code>, but then I start getting the following error:</p>
  <blockquote>
  <p>Invoke-WebRequest : Missing an argument for parameter
  'SessionVariable'. Specify a parameter of type 'System.String' and try
  again.</p>
  </blockquote>