Scripting to create a registry entry for runonce

Hi all were trying to implement KB https://support.quest.com/kb/264334/o365-hybrid-to-o365-hybrid-migration and are running into issues with the script being stuck in progress. Essentially I have a script that copies the microsooft VBS file to the temp directory (creating that folder as well) and it's supposed to create a reg add command that sets runonce hive to execute that vbs however it never adds to the registry.

I'm trying to run it via RUM as a scripting task, it just goes to In progress and never completes or spits out any error output at all. I have a hunch RUM is running it as a non elevated command promtp which of course will not add entries tot he registry.

Script below:

mkdir c:\temp
xcopy \\a011-qmm01\scripts\OlicenseCleanup\OLicenseCleanup.vbs c:\temp\

@echo off
:: BatchGotAdmin
::-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = %*:"="
    echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
::--------------------------------------

reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" /V Olicenseactivation /t REG_SZ /D "c:\temp\olicensecleanup.vbs"