Windows --nogui option not working

I installed SNAP 11 on a Windows 2022 Server (based on Windows 10).
The installation process worked without opening the GUI.
I would now like to refresh, update, and install the esa-snappy plugin for Python using the command line.
However, it seems like the --nogui and --nosplash options for snap64.exe do not have any influence at all.
Everytime I run any of the following commands, the GUI still opens:

# refresh modules
snap64.exe --nosplash --nogui --modules --refresh
# update esa-snappy
snap64.exe --nosplash --nogui --modules --update eu.esa.snap.esa.snappy
# install esa-snappy
snap64.exe --nosplash --nogui --modules --install eu.esa.snap.esa.snappy

I also tried the following approaches by killing the process but it seems like the GUI is opened prior to that:

# refresh modules
snap64.exe --nosplash --nogui --modules --update eu.esa.snap.esa.snappy 2>&1 | while read -r line; do
        echo "$line"
        [ "$line" = "Refreshing SNAP Supported Plugins" ] && taskkill /F /IM esa-snap/jre/bin/java.exe
    done

# update esa-snappy
snap64.exe --nosplash --nogui --modules --update eu.esa.snap.esa.snappy 2>&1 | while read -r line; do
        echo "$line"
        [ "$line" = "updates=0" ] && sleep 2 && taskkill /F /IM esa-snap/jre/bin/java.exe
    done

# install esa-snappy
snap64.exe --nosplash --nogui --modules --install eu.esa.snap.esa.snappy 2>&1 | while read -r line; do
        echo "$line"
            [ "$line" = "Cannot install. No match for [eu.esa.snap.esa.snappy]." ] && sleep 2 && taskkill /F /IM esa-snap/jre/bin/java.exe
    done

In general, the commands seem to work and the plugin is later on listed as Enabled. The only issue is that the process opens a GUI.
In the future I’d like to run this on a server that does not have a GUI available, so I need this to work in a headless environment.
Does anyone know a workaround for this?

Jira ticket SNAP-3942 created.

Dear jsr,

can you please check if the problem is still present in SNAP 12. My colleague and I tried all the calls you listed above on two different Windows systems, as well as on Linux.

This works perfectly. We have updated the NetBeans GUI library for SNAP 12, maybe this already solved the issue?

Cheers,
Tom