Use ImageJ to run Python script with parameters

This question is a follow up of

In brief, I’d like to call ImageJ from command-line to execute Python scripts, which take parameters as input and parse with getopt().
As stated in the above link there are two ways to script and call:

  1. The classical Python way with sys.argv
$ imagej --headless --console param1

import sys
program_name = sys.argv[0]
paramvalue1  = sys.argv[1]
  1. The Jython specific way with # @String etc.
$ imagej --ij2 --headless --console --run 'param1=value'

# @String param1

The Jython (second) way worked for me but when I try the “classical Python” (first) way, I got:

Error while executing the main() method of class 'org.python.util.jython':
        at Method)
        at org.python.jline.AnsiWindowsTerminal.detectAnsiSupport(
        at org.python.jline.AnsiWindowsTerminal.<init>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at java.lang.Class.newInstance(
        at org.python.jline.TerminalFactory.getFlavor(
        at org.python.jline.TerminalFactory.create(
        at org.python.jline.TerminalFactory.get(
        at org.python.jline.TerminalFactory.get(
        at org.python.jline.console.ConsoleReader.<init>(
        at org.python.util.JLineConsole.install(
        at org.python.core.Py.installConsole(
        at org.python.core.PySystemState.initConsole(
        at org.python.core.PySystemState.doInitialize(
        at org.python.core.PySystemState.initialize(
        at org.python.core.PySystemState.initialize(
        at org.python.core.PySystemState.initialize(
        at org.python.util.jython.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at net.imagej.launcher.ClassLauncher.launch(
        at net.imagej.launcher.ClassLauncher.main(

I never learned Java so couldn’t figure out what’s gonig on… So anyone please help me? Thank you!

System information
Win10.0.17134 (Edu) x64
Fiji ImageJ 2.0.0-rc-69/1.52p Java 1.8.0_172 (x64)
Windows PowerShell 5.1.17134.858 running in ConEmu 191012 preview