Running a python script in slicer


I’m trying to run a python script using slicer
I tried

>>> C:\Users\matte\AppData\Local\\Slicer 5.6.0\Slicer.exe --python-script "C:\Users\matte\Documents\Matteo\script\"
  File "<console>", line 1
    C:\Users\matte\AppData\Local\\Slicer 5.6.0\Slicer.exe --python-script "C:\Users\matte\Documents\Matteo\script\"
SyntaxError: unexpected character after line continuation character
>>> "C:\Users\matte\AppData\Local\\Slicer 5.6.0\Slicer.exe"--python-script "C:\Users\matte\Documents\Matteo\script\"
  File "<console>", line 1
    "C:\Users\matte\AppData\Local\\Slicer 5.6.0\Slicer.exe"--python-script "C:\Users\matte\Documents\Matteo\script\"
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

I read Run python script from command line not working without finding a solution

I’m familiar with coding but I’m new to coding using slicer, if you have any ressources that I could use, I would be very grateful

I found the solution, I needed to type the command in the Window command line not in the slicer command line