title: I need to change bat - script to make it possible to use from JS in one line
body: <p>I am writing photoshop script. I need to launch exiftool to change some exif tags. 
  Fot doing this I am use app.system(), that call cmd command to system:</p>
  
  <pre><code>app.system("start cmd /k for /f \"usebackq delims=:\" %i in (`" + exiftoolLocation + " -s \"" + name1+docName[1]+'-2'+'.jpg' + "\"` ) do ( " echo %i ^| find /i \"a\" ");
  </code></pre>
  
  <p>that prints all tag keys contains 'a'. Now, if I want to remove that tags, I have to apply "exiftool -tagName= fileName". How can I do this? </p>
  
  <p>Limitation: I can't write additional script for that, I need do everything from JS.</p>
  
  <p>There is bat-script, which doing what I want:</p>
  
  <pre><code>for /f "usebackq delims=:" %%k in (`exiftool -s "1.jpg" ^| find /i "a"`) do (
         exiftool -"%%k"= "1.jpg")
  </code></pre>
  
  <p>But </p>
  
  <pre><code>app.system("start cmd /k for /f \"usebackq delims=:\" %i in (`" + exiftoolLocation + " -s \"" + name1+docName[1]+'-2'+'.jpg' + "\"  ^| find /i \"a\"  ` ) do (.,.......)
  </code></pre>
  
  <p>launch a cmd window and immediatly close it.  without that part: "^| find /i \"a\"" tahe give a list of tags.</p>