If you run the script as "administrator" it will do as suggested and the user role will not play a part.
If you want the script to be restricted to only perform tasks that the user would normally be able to perform then set as current role as suggested above.
Note you may want to look at the deployment options too and ascertain the scripts scope with regards to departments / users etc.