Rahmat,
The script you are running is not meant to be fed directly into a switch, it may "complete" but it definitely won't achieve the desired results unless you run it through the correct tool.
You need to go to Configs > Config Change Templates and import it into that section. Once it is imported you can run the change template, pick which nodes you want to run it against, it will ask you to define some of the variables and you should be off and running.
Loop1 Systems: SolarWinds Training and Professional Services
- LinkedIN: Loop1 Systems
- Facebook: Loop1 Systems
- Twitter: @Loop1Systems