I looked at "PowerShell Running as Administrator not working?" but I must be missing something...
I need to run on Win 10 (PS version 5.1). The purpose of my powershell script 'Add2LocalAdministrators.ps1' is to add the current logged in user to the local administrators group. I need to run the script as the logged on user with elevated (local administrator) privilege's.
I can run it passing a plain text username and password or... I can first run another script to store it in a files as encrypted text.