Quit/restart Caspar by script

Hi
Is there any way that I could quit server in the beginning of this script.
The idea is that the user could change the configuration of CasparCG just by running a script / desktop-shortcut.
A bit in the same catogory is can I in this script automatically start a AMCP-command
PLAY 1-10 [HTML] “http://www.yle.fi
The script (bat-file) I would like to integrate these 2 functions is

@Echo off

IF EXIST scanner.exe (
    IF EXIST leveldown.node (
        start scanner.exe
    )
)

:Start
SET ERRORLEVEL 0

casparcg.exe 2NDI_i50.config

if ERRORLEVEL 5 goto :Start

br markus

Solution to question number 2 was googled
Taskkill /IM casparcg.exe /FI “STATUS eq RUNNING” /F

works if it is put just after the @echo off
like this

@Echo off
Taskkill /IM casparcg.exe /FI "STATUS eq RUNNING" /F

IF EXIST scanner.exe (
    IF EXIST leveldown.node (
        start scanner.exe
    )
)


:Start
SET ERRORLEVEL 0

casparcg.exe 2NDI_i50.config

if ERRORLEVEL 5 goto :Start

Hi, nice script. We use AHK script for starting our server. It changes to casparCG window and writes the initial commands.

Example for AHK script:

SetTitleMatchMode, 1
IfWinExist CasparCG
{
WinActivate
Sleep, 1000
Send PLAY 1-10 [HTML] “http://www.yle.fi
Send {Enter}
sleep, 200
ExitApp
}