'Gitlab Runner to open GUI on windows (Shell runner)

I would need a GitLab Runner to open a program, in my case Unity3D and to start running a scene. For this I selected a shell runner to run a batch script. The following code is executed successfully, but neither the window opens nor does the runner fail.

echo "Checkout branches"
git submodule update --init --remote
cd .\simulation\
git status
cd ..
cd .\agent\
git status
cd ..

echo "Open Unity3d"
"C:\Program Files\Unity\Editor\Unity.exe" -openProject ".\simulation\Assets\Scenes\TestScene.unity"

Did I chose the wrong type or is it impossible to start GUI applications using GitLab Runner on Windows?

Best regards, Taka

Intention is that an AI agent is interacting with a Unity3d simulated environment



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source