Visual Studio Code Tasks

Is there some way that I could run a glitch console command like refresh using a VS Code task?
An example of a VS Code task would be:

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "npm",
      "script": "install",
      "problemMatcher": []
    }
  ]
}

Could setup a watch.json and have the task alter a trigger file.

https://glitch.com/help/restart/

Oh I see, that would be cool. How could I do that?
Like, what type would I use? Also what script

This is how I’d setup a task …

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "restart project",
            "type": "shell",
            "command": "date > .trigger-restart",
            "windows": {
              "command": "time /t > .trigger-restart"
            }
        }
    ]
}

But I couldn’t get it working with the Glitch extension, it breaks the Tasks functionality in several ways and makes Tasks unusable. Maybe it works for you?

Edit - I raised a bug for this in github https://github.com/vscode-glitch/vscode-glitch/issues/11