Issue inserting variable into script

Issue inserting variable into script

Hoping someone can help with a question.
 I have a field named "employee name" and the UDF string is "ServiceReq_User_UDF_CHAR1"

I want to pull that data in a script and assign it to a variable named "ename" so I can append it to the Subject line of a new request,
I have tried var ename=$CS.getText("ServiceReq_User_UDF_CHAR1"); but I get this error "Error at line : 4, Improper Statement Error might be due to missing ';' at end of the line or incomplete expression"

Can anyone assist with the correct way to bring in this variable?


                  New to ADSelfService Plus?