I'm not sure if this is what you're trying to do, but I'll share what I found when trying to help another user. I found that in order to launch a program as an admin account and run it elevated, I had to first launch a program as the user and then launch the elevated program.
See my RunasAdmin.ps1 script in this link. Feel free to modify it to suit your needs. It stores the user credentials in the registry in base 64 encoding. So it's not in plain text, but a really technical user could figure it out. It all depends on your security requirements.
If your account is an admin and you just want to elevate a process, use the advanced button and select run as administrator.