Runs a command