I Tried the same script , But its showing an error message that "Illegal Statement", Any add-ins is there to identify the Script.

Could you please give your valuable thoughts