In .cmd file is this:

@ECHO OFF

cd /

cd InterSystems\bin

type NUL > file.txt

ccontrol qlist Cache nodisplay > file.txt

set instance = ""

FOR /F "tokens=1 delims=^" %%x in (file.txt) DO set instance=%%x

echo %instance%

IF "%instance%" NEQ "" (

    csession Cache -U%SYS < C:\Users\Zdenda\Desktop\run.script

) ELSE (
    
    Echo Somenthing goes wrong with error number %ERRORLEVEL%.
)

del file.txt

::FOR /F "tokens=1 delims=^" %%x in (file.txt) DO echo %%x

Pause

And in file run.script is this code:

Do $system.OBJ.Load("C:\Users\Zdenda\Desktop\install\Installer.xml", "c")
Do ##class(User.Installer).setup()

I really don't know why.. Thanks a lot..

Ok

In terminal it's working fine, but in my .cmd script no. If i run this:

csession Cache -U%SYS do $system.OBJ.Load("C:\Users\Zdenda\Desktop\install\Installer.xml", "c")

It return an error like this:

Ok finally I try to put there this line of code do ##class(User.Installer).setup()  but as you can guess it doesn't working, According to documentation it should be COS code is that right? Then I tried put there Installer file, but it's .xml it must be rouitne or not? 

I'm appologise, that I restrain you, but I started recently and I'm not completely friend with Ensemble.

Again thank you for your time.

Ok thank you I've got it, but I've got here something else, if I do this verify and result will be, that Ensemble is installed, how can I start only Manifest, my idea was, that I could invoke Ensemble terminal by ccontrol, and somehow type here commands, but is there any possibyllity how can I do this only from cmd, without typing by my hands?

Thank you, I'm so grateful to you.

Ok thank you so much for you time and helpful answers. You helped me really much. Thanks.