Rapid Cloning Utility Example

[ Edited ]

We are trying to develop a short-term workaround for Rapid Cloning a VM in XenServer/ PVS. We have found scripts that do that but they use a file copy to create the new D: drive. We would like to replace this with the same Rapid Cloning logic that are in VSC. Is there an example Powershell script of this - or something like it? I would have to quickly thin-clone a file within an NFS file system.