Add support to node.repair to send options and capture the output

Minor enhancements to node.repair to be able to  to send options and capture the output