How Self elevate a program without entering password for admin in a non-admin user account?

  admin, windows

So I know the admin password and don’t want to enter the password every time a non-admin users needs it.
Is there a way I can do this.

Found a task scheduling method but it works only for admin accounts.
And I wanted to know a way to do it through code.

Any Help is appreciated.

Source: Windows Questions