Script to Update Task Name

Script to Update Task Name

I have a script I use to update the subject line of our Employee Onboarding/Offboarding request. All it does is add the name of the employee and the effective date. That script is below. Is it possible to edit this script so it can change the title of task on that request? Much of the work the task require cannot be completed until the effective date. So having it added to the task title would assist the tech's in visual sorting their assigned tasks and quickly checking when something needs to be completed. 

// To append the requester name in the subject field
if($CS.isFormSubmit())

var FirstName=$CS.getValue("WorkOrder_Fields_UDF_CHAR6");
var LastName=$CS.getValue("WorkOrder_Fields_UDF_CHAR10");
var sub=$CS.getValue("SUBJECT");
var d = $CS.getValue("WorkOrder_Fields_UDF_DATE2");
var month_name =['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
var day_name =['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'];
var nd = month_name[d.getMonth()]+"-"+day_name[d.getDate()];
var new_sub = nd + " - " + sub + " - " + FirstName + " " + LastName;
if($CS.isFormSubmit()){  $CS.setValue("SUBJECT", new_sub);

                  New to ADSelfService Plus?