Add function for running a command on a node