Execute a command on a remote target