Application is starting but never ends when running from powershell script

A job triggered from gitlab is starting a powershell script on a windows PC which starts an application. This application is showing up in the task manager but unfortunately runs in the background. It seems this application is never starting - although the process is there - and therefore the gitlab is waiting forever until the application ends…

When starting directly from the windows PC the same powershell script, the application is starting in the fourground and ends as expected - no problem at all.

- what is the problem here???!!