Trigger the cloner function programmatically

Hi,
Can the Cloner function be triggered programmatically, I have a site where I am currently creating a function user can create a bunch of criterias and when they click based on the choices it will clone a particular site.

Thanks
Manoj