The script can only be run via shell - either adb shell or terminal emulator. And you have to gain root access via su.
For putting it into /system/bin, you have to remount system partition rewritable. This can be done via adb, via terminal emulator or via root explorer.
Also, you need to change file attributes for the script to make it executable.
|