title: JQ with Windows Batch - select failing
body: <p>Using a Windows batch file with JQ and trying to pipe the select filter. </p>
  
  <p>Example Json which is being parsed with JQ:</p>
  
  <pre><code>{
    "name": "test-mmc-deploy",
    "id": "local$3d2075c5-73c0-47aa-8df5-cee3a70f68c4",
    "lastModified": "Mon, 1 May 2017 13:56:15.980 AEST",
    "servers": [
      "local$520ee705-bdbb-4132-94cf-63bb213d2b46"
    ],
    "status": "DEPLOYED",
    "applications": [
      "local$f3d791bd-14d9-4491-9541-5fa04d8c3164"
    ],
    "href": "http://localhost:9090/mmc-console-3.8.2/api/deployments/local$3d2075c5-73c0-47aa-8df5-cee3a70f68c4",
    "clusterNames": [],
    "reconciled": false,
    "clusterIds": []
  }
  </code></pre>
  
  <p>Normal command line JQ works with Curl and gives output as follows:</p>
  
  <p>curl --basic -u admin:admin <a href="http://localhost:9090/mmc-console-3.8.2/api/deployments" rel="nofollow noreferrer">http://localhost:9090/mmc-console-3.8.2/api/deployments</a> | jq ".data[] | select(.name==\"test-mmc-deploy\").id</p>
  
  <p><em>"local$3d2075c5-73c0-47aa-8df5-cee3a70f68c4"</em></p>
  
  <p>Trying to get the below command working in a Windows batch file is creating an escape character nightmare. Need some help please.</p>
  
  <pre><code>for /f "tokens=*" %%a in ('echo %%app_deploy_list%% ^| jq "".data[] ^| select(.name==\"test-mmc-deploy\"^).id""') do (set app_id=%%a)
  echo Application found: %app_id%
  </code></pre>
  
  <p>where %%app_deploy_list%% holds the json declared above.</p>
  
  <p>The error I am getting is:
  'select' is not recognized as an internal or external command</p>