@echo off
set "LLAMBDA_INSTALLER=%TEMP%\llambda-local-connector-install.ps1"
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri 'https://llambda.net/install/llambda-local-connector-install.ps1' -OutFile $env:LLAMBDA_INSTALLER"
if errorlevel 1 exit /b %ERRORLEVEL%
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath 'powershell.exe' -Verb RunAs -Wait -ArgumentList @('-NoProfile','-ExecutionPolicy','Bypass','-File',$env:LLAMBDA_INSTALLER)"
pause