I was writing a script which runs a program on Vista machine. It required administrative privileges, so the UAC pop-ups came up whenever I runs the script. I knew Microsoft should have some kind of mechanism to run the script in elevation mode. It turns out to be June 2007 Technet magazine has "Utility Spotlight" article published with the Vista Script Elevation Powertoy. It’s works for me.
Here the link to the article:
Here the download for the Script Elevation Powertoy: