I’d like to see some sort of requires-statement for scripts that mark script as “admin privs required” so when the script is launched w/o admin privs, you would get a UAC elevation prompt and run it in an elevated console.
Only then would scripts be equal citizens compared to compiled software.
Today, there are scripts containing commands that need elevation to run correctly. There is no way to mark those scripts as "requiring admin rights". The concept found in compiled apps should be extended to powershell scripts to make them useful for admins in all scenarios. A "marked as elevation" script should elevate itself automatically just like tools like diskpart do.