The add-node-bgp script uses the remote rpc (cross-box scripting) mechanism available from 9.3 onwards.
See the document: add-node-bgp