Hab die Datei nun als Batch Datei bekommen, komme natürlich trotzdem nicht weiter

wie gesagt, blutiger Anfänger, aber ich versuche mein bestes
Hier ist mal der momentane STand, ich mach nun eh Feierabend
; SETUPTYPE installshield
;****************************************
; PRODUCTID hes-jiradiscoveryagent
; SETUPFILE discovery.bat
;****************************************
; LICENSE false
; PRODUCTDESC hes-jiradiscoveryagent
; PRODUCTNAME hes-jiradiscoveryagent
; PRODUCTSIZE 100 MB
; PRODUCTVER jiradiscoveryagent-2023.1.0
;****************************************
; SETUPSCRIPT setup.opsiscript
; UNINSSCRIPT uninstall.opsiscript
;****************************************
; MSIID
; USE-MST
; INSTALLDIR C:\Program Files\Atlassian\Discovery Agent
;****************************************
; TIMESTAMP 11.08.2023 16:00:00
;****************************************
[Actions]
requiredWinstVersion >= "hier stehen zahlen, ka ob ich die veröffentlichen darf"
ScriptErrorMessages = false
DefVar $ProductId$
DefVar $Setupfile$
DefVar $MinimumSpace$
DefVar $ExitCode$
DefVar $ErrorMsg$
DefVar $LicenseRequired$
DefVar $MsiId$
DefVar $NsisInstallBatch$
DefVar $LogDir$
Set $LogDir$ = "%opsiLogDir%"
; $ProductId$ is the name of the product in opsi, only lower letters, no umlauts, no white spaces, use '-' as a seperator
Set $ProductId$ = "hes-jiradiscoveryagent"
Set $Setupfile$ = "discovery.bat"
Set $LicenseRequired$ = "false"
Set $MsiId$ = ""
Set $MinimumSpace$ = "120 MB"
; ----------------------------------------------------------------
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError "No Space"
else
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
Message "Installing " + $ProductId$ + " ..."
comment "Start setup program"
;----------------------------------------------
DosInAnIcon_Install
;----------------------------------------------
endif
; ----------------------------------------------------------------
; install section
; ----------------------------------------------------------------
[DosInAnIcon_batch]
"%ScriptPath%\$Setupfile$" /quiet /norestart ACCEPTEULA=1 REMOVEINSTALLEDAPP=1 AUTOUPDATE=0
@echo off
cd Z:\hes\hes-jiradiscoveryagent\CLIENT_DATA\discovery.bat
Es fehlt wohl nur noch der Endcode oder? Bin mir aber sehr unsicher ^^