Best way to create an entrypoint for a program that expects to open a console

I am trying to run OpenHAB on a windows docker container, using the configuration uploaded here:

the dockerfile sets an entrypoint to an entrypoint.ps1 script that starts a start.bat from OpenHAB that starts the software and tries to open a console prompt within the software. While manually running the entrypoint.ps1 within the contianer works fine, using entrypoint.ps1 from the dockerfile stops the container just about at the time when the console prompt should be opened.
I have now been trying different combinations and always stumbling upon that issue.

What would be a good way to start a program which by itself opens a command prompt and keep this running, ideally forwarding the prompt to the console output?