de shell script with administrative priverlages

Shell
do shell script "<your script here>" with administrator privileges
Source

Also in Shell: