Try changing the method mode used for elevating your bat to running as admin.
This one is a minimalist vbs that can help you elucidate if the error is in the bat or vbs code.
Try to run the bat commands directly on the command line, one by one, just to make sure that part / session is the error.
@echo off & setlocal EnableDelayedExpansion
title <nul & title ..\%~nx0 & "%__APPDIR__%mode.com" 122,30 & color 0a & cd /d "%~dp0"
2>nul "%__APPDIR__%whoami.exe" /groups | find "S-1-16-12288" >nul && goto :NXT: || <nul (
echo=CreateObject("Shell.Application"^).ShellExecute "%~sdpnx0", "%*", "RunAsAdministrator", "runas", 1: WScript.Quit
) >"%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" //nologo && type "%temp%\getadmin.vbs"| clip &&2>nul del /q /f "%temp%\getadmin.vbs" && goto :eof
:NXT:
echo=Running custom startup tasks... <nul || "%__APPDIR__%timeout.exe" /t 3 >nul & echo\
echo\runas /user:*domainname*\*username* /savecred "C:\Program Files\EVGA\Precision X1\PrecisionX_x64.exe" -s
echo\runas /user:*domainname*\*username* /savecred "M:\Google Drive\Personal\Computer & Tech\Fixes & Scripts\AHK\Home.ahk"
echo\runas /user:*domainname*\*username* /savecred "M:\Program Files (x86)\Steam\steam.exe"
echo\runas /user:*domainname*\*username* /savecred "M:\Program Files\Rainmeter\Rainmeter.exe"
echo\Done^!! & "%__APPDIR__%timeout.exe" /t 5 & endlocal & goto :EOF
- This is the vbs code without escaping:
CreateObject("Shell.Application").ShellExecute "C:\Users\ecker\AppData\Local\Temp\Q1C765~1.CMD", "arg1 arg2 arg3", "RunAsAdministrator", "runas", 1: WScript.Quit
// Note: To hide/suppress the cmd window while executions are in progress, change: "runas", 1 to "runas", 0
Source/Inspiration in this answer by Riccardo La Marca