How to store response of url in a variable batch scripting
<p>I am trying to store the response of a URL into a variable in a batch script</p>

<p>Example:</p>

<pre><code>set initial=PowerShell -Command "(new-object net.webclient).DownloadString('https://some-url/id')"
</code></pre>

<p>I'm trying to store the response of:</p>

<pre><code>PowerShell -Command "(new-object net.webclient).DownloadString('https://some-url/id')"
</code></pre>

<p>into variable:</p>

<p><code>initial</code></p>

<p>But this is not working. How can I accomplish my goal? </p>