Thanks @Ramesh_Naidu

 

I have tried the above line of script on create task activity, but it's not working as expected.