Most of the script will require you to add the credentials to it to run with elevated privileges, The below is one of the way you can add credentials to the script.
$usr = "Domain\username"
$Pwd = ConvertTo-SecureString -String "Password" -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $usr,$pwd
You can now use the Variable for the scripts you use.
