This extension lets you configure a command to run on a current file as a status bar button.
{
"command": "echo Hello world",
"name": "Hello!"
}
will produce a button titled Hello!
, which upon clicking will run echo Hello world /path/to/current/file