Here is a basic code snippet that will add the current displayed assembly to the clone process, apply a naming rule (in this case adding "-" to the end of every component), and define the output folder:
Option Strict Off
Imports System
Imports System.Windows.Forms
Imports NXOpen
Imports...