unfortunately this command is no more available, it works in PM2016.. You can try this:
//fill this with Your templates:
STRING LIST templates = {"2.5D-Area-Clearance\2D-Curve-Area-Clearance.002.ptf";"2.5D-Area-Clearance\2D-Curve-Profile.002.ptf";"2.5D-Area-Clearance\Face-Milling.ptf";"2.5D-Area-Clearance\Chamfer-Milling.ptf";"3D-Area-Clearance\Model-Area-Clearance.003.ptf"}
//fill this with Your custom names:
STRING LIST customnames = {"2d_roughing"; "2d_profile"; "Face" ; "Chamfer"; "3d_roughing" }
INT c = 0
$c = INPUT CHOICE $templates "Select the template:"
STRING selected = $templates[$c]
IMPORT TEMPLATE ENTITY TOOLPATH $selected
STRING tpname = $customnames[$c]
IF NOT ENTITY_EXISTS('toolpath', $tpname) {
INT $i = 1
STRING tempname = $tpname + $i
WHILE ENTITY_EXISTS('toolpath', $tempname) {
$tempname = $tpname + $i
$i = $i + 1
}
RENAME TOOLPATH ; $tempname
}