scalar: implement the `run` command