For setting, name and description to the Jenkins pipeline can be given from Jenkins file for that make sure about the usage of currentBuild inside the node part.
Node{
currentBuild.displayName = "$yournamevariable-$another"
currentBuild.description = "$yourdescriptionvariable-$another"
}
This will help to rename your file and description your builds but in the question, we have to rename the jobs which we need some permissions for those permissions you need to follow the commands.
item = Jenkins.instance.getItemByFullName("originalJobName")
item.setDescription("This description was changed by script")
item.save()
item.renameTo("new-JobName")
This will let you change the name and description of a job from a Jenkins file.