Add toAddress(network) functionality to scripts