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

Minor enhancement to be able  to send options and capture the output.