'Adding Printer PowerShell Script File

I am trying to create a script that will allow a non admin user to run a script file to add printer drivers and then add the IP printer. The script I have works, but only as an administrator to add the driver files to the Driver Store. I have a script to open PowerShell with stored credentials, but it will never run the file let alone as an administrator.

$username = "Domain\User"
$pass= ConvertTo-SecureString "Password" -AsPlainText -Force
$cred= new-object System.Management.Automation.PSCredential ($username, $pass)
$ps1="Path\To\File.ps1"
Start-Process -WorkingDirectory 'C:\Windows' powershell.exe -Credential $cred -ArgumentList "-Start-Process -FilePath $ps1 -Verb RunAs"

This currently has PowerShell open and immediately close. Running Start-Process -FilePath $ps1 in admin console also returns an error of "No application is associated with the specified file for this operation." even though I have set .ps1 to default to powershell.exe



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source