Getting started with GPT from the windows command line

Hi,
I am new to snap and for my first project i am trying to run some analysis using gpt from a windows script.
I wanted to start with very simple operations just to get to know it, so i tried to run gpt -h command from the windows command line while being in the C:\Program Files\snap\bin path, and i got an error massage (added at the end of the post).
what am i doing wrong?
thanks!

i got this massage:

SEVERE: org.esa.snap.runtime.Engine: Failed to start org.esa.snap.jython.PluginActivator
Traceback (most recent call last):
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py”, line 585, in
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py”, line 567, in main
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py”, line 300, in addusersitepackages
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py”, line 289, in getusersitepackages
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py”, line 416, in get_path
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py”, line 407, in get_paths
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py”, line 180, in _expand_vars
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py”, line 154, in _subst_vars
File “C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py”, line 154, in _subst_vars
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 9-12: ordinal not in range(128)

at org.python.core.codecs.strict_errors(codecs.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.JavaFunc.__call__(Py.java:2426)
at org.python.core.PyObject.__call__(PyObject.java:431)
at org.python.core.codecs.encoding_error(codecs.java:1538)
at org.python.core.codecs.PyUnicode_EncodeIntLimited(codecs.java:1211)
at org.python.core.codecs.PyUnicode_EncodeASCII(codecs.java:1170)
at org.python.core.codecs.encode(codecs.java:165)
at org.python.core.PyString.encode(PyString.java:3896)
at org.python.core.PyString.encode(PyString.java:3888)
at org.python.core.PyUnicode.unicode___str__(PyUnicode.java:667)
at org.python.core.PyUnicode.__str__(PyUnicode.java:662)
at org.python.core.PyString.buildFormattedString(PyString.java:4006)
at org.python.core.PyString.str_format(PyString.java:3941)
at org.python.core.PyString$str_format_exposer.__call__(Unknown Source)
at org.python.core.PyObject._callextra(PyObject.java:601)
at sysconfig$py._subst_vars$3(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py:159)
at sysconfig$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at sysconfig$py._expand_vars$5(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py:181)
at sysconfig$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at sysconfig$py.get_paths$17(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py:409)
at sysconfig$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:170)
at org.python.core.PyFunction.__call__(PyFunction.java:434)
at sysconfig$py.get_path$18(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py:416)
at sysconfig$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\sysconfig.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
at org.python.core.PyBaseCode.call(PyBaseCode.java:145)
at org.python.core.PyFunction.__call__(PyFunction.java:423)
at site$py.getusersitepackages$10(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py:290)
at site$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
at org.python.core.PyFunction.__call__(PyFunction.java:403)
at site$py.addusersitepackages$11(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py:304)
at site$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:138)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at site$py.main$34(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py:583)
at site$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
at org.python.core.PyFunction.__call__(PyFunction.java:403)
at site$py.f$0(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py:637)
at site$py.call_function(C:\Program Files\snap\snap\modules\ext\org.esa.snap.snap-jython\org-python\jython-standalone.jar\Lib\site.py)
at org.python.core.PyTableCode.call(PyTableCode.java:167)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:436)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:163)
at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
at org.python.core.imp.loadFromLoader(imp.java:587)
at org.python.core.imp.find_module(imp.java:537)
at org.python.core.imp.import_next(imp.java:840)
at org.python.core.imp.import_first(imp.java:861)
at org.python.core.imp.load(imp.java:716)
at org.python.core.Py.importSiteIfSelected(Py.java:1558)
at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
at org.esa.snap.jython.PluginActivator.start(PluginActivator.java:72)
at org.esa.snap.runtime.Engine.informActivators(Engine.java:222)
at org.esa.snap.runtime.Engine.lambda$start$10(Engine.java:121)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
at org.esa.snap.runtime.Engine.start(Engine.java:121)
at org.esa.snap.runtime.Engine.start(Engine.java:90)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:16)

INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
Native library load failed.
java.lang.UnsatisfiedLinkError: C:\Users\גוני ברקי.snap\auxdata\gdal\gdal-2.1.3-win64\bin\gdal\java\gdalconstjni.dll: Can’t find dependent libraries
Error: org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()I
java.lang.UnsatisfiedLinkError: org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get()I
at org.gdal.gdalconst.gdalconstJNI.GDT_Unknown_get(Native Method)
at org.gdal.gdalconst.gdalconstConstants.(gdalconstConstants.java:12)
at org.esa.s2tbx.dataio.gdal.GDALUtils.(GDALUtils.java:32)
at org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller.install(GDALDistributionInstaller.java:74)
at org.esa.s2tbx.dataio.gdal.activator.GDALPlugInActivator.start(GDALPlugInActivator.java:22)
at org.esa.snap.runtime.Engine.informActivators(Engine.java:222)
at org.esa.snap.runtime.Engine.lambda$start$10(Engine.java:121)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
at org.esa.snap.runtime.Engine.start(Engine.java:121)
at org.esa.snap.runtime.Engine.start(Engine.java:90)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:16

that looks like your path or filenames contain special characters.

As Andreas said, it is probably your username which causes the problem.
Is GDAL working on your system in a standalone mode? Would be good to know if this is a problem in our GDAL wrapper or in GDAL itself.

@kraftek, @Omar what do you think?