Windows Shared runner with VS cl.exe

I see many questions regarding the usage of Visual Studio to build a c++ program. I am trying to simply get “cl.exe” command line compiler to work. I found the paths to VsDevCmd.bat and cl.exe. I try to call VsDevCmd.bat and then my compile command but nothing seems to work. In some cases, I see the expected output when running VsDevCmd.bat, but then I call cl.exe and it is not found. I try to give the path to cl.exe but other requirements are not found in the path like the .bat file ran in another process and ended.
Has anyone gotten this to work?
win:build:
tags:
- shared-windows
variables:
CLSET: “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat”
CLCOMP: “C:\Program Files (x86)\Microsoft Visual Studio2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\Hostx64\x64\cl.exe /EHsc test.cpp”
stage: build
script:
- {CLSET} - {CLCOMP}
artifacts:
paths:
- test.exe
expire_in: 1 hrs

AFAIK you need to call vcvarsall.bat (see Use the Microsoft C++ toolset from the command line | Microsoft Docs) from the visual studio installation. This should setup the correct path for you.