Make another script with these lines:
Code:
#! /bin/bash
su -c 'yourscripttogetwireless.sh'
or
Code:
#! /bin/bash
# Script to connect to wireless lan.
su -c 'modprobe ndiswrapper ; iwconfig wlan0 mode Managed ; iwconfig wlan0 key restricted 9999999999 ; iwconfig wlan0 essid ESSID ; dhcpcd wlan0'
Oh, you could also take a look at sudo ('man sudo' and 'man sudoers') to see how to enable certain user to execute certain commands.