How to always allow "[program] wants to make changes. Type your password to allow this."

This is too large a trust you want to give to osascript.

Do you want this command to run without asking you for a real confirmation:

sudo osascript -e 'tell app "Finder" to quit'

?