Send commands from rest API to node