Hallo,
Auszug aus Datei: ...\Kodi\addons\skin.transparency\720p\custom_1150.xml
...
<item id="1" description="Start 1. NAS">
<label>Start NAS-1</label>
<icon>C:\Thumbnails\NAS-1.jpg</icon>
<property name="fanartbackground">C:\Fanarts\fanart-1.jpg</property>
<!-- <onclick>XBMC.System.Exec("C:\Batch-Scripte\start_NAS-1.bat")</onclick> -->
<!-- <onclick>XBMC.System.ExecWait("C:\Batch-Scripte\start_NAS-1.bat")</onclick> -->
<onclick>RunScript("C:\Batch-Scripte\start_NAS-1_py.py")</onclick> <!-- Bingo! Kodi is always on top :-) -->
</item>
...
Zwischen "XBMC.System.Exec" und "XBMC.System.ExecWait" ist kein großer Unterschied zu erkennen. Kodi verschwindet kurz und taucht dann wieder auf.
Auf dem Umweg über ein Phyton Script bin ich gestern auch zufällig gestoßen, hatte aber erst heute Zeit zum Testen.
Python Script: C:\Batch-Scripte\start_NAS-1_py.py
import os
os.system("C:/Batch-Scripte/start_NAS-1.bat")
Läuft wunderbar über den Python Umweg. Kodi wird nicht geschlossen und das Batch Script wird im Hintergrund ausgeführt.
Den Schlafparameter xbmc.sleep konnte ich noch nicht ins Python Script einbauen. Muss ich mich noch einarbeiten oder ein neues Thema erstellen, von Python hab ich keinen Schimmer. 
Dann werd ich mal das Thema auf "erledigt" setzen.
Gruß und ein schönes Wochenende!
#############################
### Update vom 7. April 2017 ###
Da sich die Transparency Ordnerstruktur (...\skin.transparency\720p -> ...\skin.transparency\1080p) nach dem Kodi update von 16.x zu 17.0 geändert hatte, musste die custom_1150.xml angepasst werden.
Die Zeile <onclick>RunScript("C:\Batch-Scripte\<script>")</onclick> wurde auch geändert. Es MUSS ein Phyton Script gestartet werden, ansonsten verliert Kodi den Focus.
Getestet mit Transparency! v10.3.0
Datei: ...\Kodi\addons\skin.transparency\1080p\custom_1150.xml
<?xml version="1.0" encoding="UTF-8"?>
<window id="1150">
<defaultcontrol always="true">53</defaultcontrol>
<allowoverlay>no</allowoverlay>
<coordinates>
<system>1</system>
<posX>0</posX>
<posY>0</posY>
</coordinates>
<controls>
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1920</width>
<height>1080</height>
<imagepath fallback="special://skin/backgrounds/background-programs.jpg" background="true">$INFO[Skin.String(Custom_Back_Programs_Folder)]</imagepath>
<aspectratio>scale</aspectratio>
<timeperimage>5000</timeperimage>
<randomize>true</randomize>
<fadetime>2000</fadetime>
<include condition="Skin.HasSetting(AnimateBackgrounds)">backgroundanimation</include>
<visible>IsEmpty(ListItem.Property(Fanart_Image)) + ![Player.HasVideo + !Skin.HasSetting(HideVideoBackgrounds)]</visible>
</control>
<control type="image"> <!-- ### background fanart für jedes item anzeigen ### -->
<posx>0</posx>
<posy>0</posy>
<width>1920</width>
<height>1080</height>
<texture background="true">$INFO[Container(53).ListItem.Property(fanartbackground)]</texture>
<aspectratio>scale</aspectratio>
<fadetime>300</fadetime>
<include condition="Skin.HasSetting(AnimateBackgrounds)">backgroundanimation</include>
<visible>!IsEmpty(Container(53).ListItem.Property(fanartbackground))</visible>
</control>
<control type="group"> <!-- ### Kopfzeile ### -->
<include>Window_OpenClose_Header_Animation</include>
<control type="image">
<left>0</left>
<top>0</top>
<width>1920</width>
<height>82</height>
<texture border="1">Header.png</texture>
</control>
<control type="grouplist">
<left>0</left>
<top>0</top>
<width>794</width>
<height>45</height>
<orientation>horizontal</orientation>
<itemgap>0</itemgap>
<control type="image">
<width>44</width>
<height>45</height>
<texture>dot.png</texture>
</control>
<control type="label">
<description>date label</description>
<width min="15" max="600">auto</width>
<height>45</height>
<aligny>center</aligny>
<font>font-20</font>
<textcolor>white</textcolor>
<label>$INFO[System.Date]</label>
</control>
<control type="image">
<width>44</width>
<height>45</height>
<texture>dot.png</texture>
</control>
<control type="label">
<description>time label</description>
<width min="15" max="150">auto</width>
<height>45</height>
<aligny>center</aligny>
<font>font-20</font>
<textcolor>white</textcolor>
<label>$INFO[System.Time]</label>
</control>
</control>
</control>
<control type="group">
<control type="image">
<left>266</left>
<top>142</top>
<width>1360</width>
<height>795</height>
<texture border="17">panel.png</texture>
<bordersize>11</bordersize>
<include>ContentFade</include>
</control>
<control type="panel" id="53">
<left>266</left>
<top>178</top>
<width>1360</width>
<height>744</height>
<onleft>9000</onleft>
<onright>60</onright>
<onup>53</onup>
<ondown>53</ondown>
<viewtype label="21371">icon</viewtype>
<pagecontrol>60</pagecontrol>
<scrolltime>200</scrolltime>
<preloaditems>2</preloaditems>
<itemlayout width="272" height="248">
<control type="image">
<left>45</left>
<top>16</top>
<width>180</width>
<height>180</height>
<texture border="45">thumb-nofocus.png</texture>
</control>
<control type="image">
<left>52</left>
<top>24</top>
<width>165</width>
<height>165</height>
<aspectratio scalediffuse="false">keep</aspectratio>
<texture diffuse="thumb-diffuse.png" background="true">$INFO[Listitem.Icon]</texture>
</control>
<control type="label">
<left>15</left>
<top>195</top>
<width>240</width>
<height>38</height>
<font>font-20</font>
<textcolor>white</textcolor>
<selectedcolor>blue</selectedcolor>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</itemlayout>
<focusedlayout width="272" height="248">
<control type="image">
<left>45</left>
<top>16</top>
<width>180</width>
<height>180</height>
<texture border="7">thumb-focus.png</texture>
<animation type="focus">
<effect type="slide" start="0,0" end="0,-6" time="200"/>
<effect type="zoom" start="100" end="115" center="auto" time="200"/>
</animation>
<animation type="unfocus">
<effect type="slide" start="0,-6" end="0,0" time="200"/>
<effect type="zoom" start="115" end="100" center="auto" time="200"/>
</animation>
</control>
<control type="image">
<left>52</left>
<top>24</top>
<width>165</width>
<height>165</height>
<aspectratio scalediffuse="false">keep</aspectratio>
<texture diffuse="thumb-diffuse.png" background="true">$INFO[Listitem.Icon]</texture>
<animation type="focus">
<effect type="slide" start="0,0" end="0,-6" time="200"/>
<effect type="zoom" start="100" end="123" center="auto" time="200"/>
</animation>
<animation type="unfocus">
<effect type="slide" start="0,-6" end="0,0" time="200"/>
<effect type="zoom" start="123" end="100" center="auto" time="200"/>
</animation>
</control>
<control type="label">
<left>15</left>
<top>195</top>
<width>240</width>
<height>38</height>
<font>font-20</font>
<textcolor>blue</textcolor>
<selectedcolor>blue</selectedcolor>
<align>center</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]</label>
</control>
</focusedlayout>
<content>
<item id="0" description="Zurück zum home screen">
<label>...</label>
<icon>DefaultFolderback.png</icon>
<onclick>PreviousMenu</onclick>
</item>
<item id="1" description="Start 1. NAS">
<label>Start NAS-1</label>
<icon>C:\Thumbnails\NAS-1.jpg</icon>
<property name="fanartbackground">C:\Fanarts\fanart-1.jpg</property> <!-- background fanart wird angezeigt -->
<onclick>RunScript("C:\Batch-Scripte\start_NAS-1.py")</onclick> <!-- Phyton Script wird erfolgreich ausgeführt und Kodi behält den Focus -->
</item>
<item id="2" description="Benutzer abmelden">
<label>User logoff</label>
<icon>C:\Thumbnails\User_logoff.png</icon>
<property name="fanartbackground">C:\Fanarts\fanart-2.jpg</property>
<onclick>XBMC.System.Exec("C:\Batch-Scripte\User_logoff.py")</onclick>
</item>
<!-- usw. hier koennen weitere items stehen -->
</content>
</control>
</control>
</controls>
</window>
Alles anzeigen
Python Script: C:\Batch-Scripte\start_NAS-1.py
import subprocess
subprocess.call(r'net use z: \\shared\folder /user:userXYZ password', shell=True)