title: VS Code - How to write tasks.json to run multiple commands in a single task
body: <p>I'm new to Visual Studio Code and trying to write <strong>tasks.json</strong> to perform my custom build task so that I can build my project by "Terminal / Run Build Task ...".</p>
  
  <p>However, my build task is composed of multiple commands, like (windows script for example):</p>
  
  <pre><code>preBuildTask1.bat
  preBuildTask2.bat
  ...
  build.bat
  ...
  postBuildTask1.bat
  postBuildTask2.bat
  ...
  </code></pre>
  
  <p>I looks like task.json only allows me to put a single command for "<strong>command</strong>" property, like:</p>
  
  <pre><code>    "tasks": [
          {
              "label": "emcc",
              "type": "shell",
              "command": "buildTask.ps1",
              "group": {
                  "kind": "build",
                  "isDefault": true
              }
          },
      ]
  }
  </code></pre>
  
  <p>My current work around is put all sub-tasks in a powershell script then invoke that script in tasks.json, like "<strong>buildTask.ps1</strong>" showed in the code above.
  It will be more convenient if I can directly write multiple tasks for a single command property. Anyone knows how to do that? Thanks.</p>