I have the batch file running when I execute it from command line, but I still get an error when running from kix.

Map Error was execute: 1 - Incorrect function.
\\ADS02\netlogon\sms\client.bat \\ADS02\netlogon\runnas.exe

client.bat runs from command prompt

msiexec /i "client.msi" /n /quiet /norestart

smsclient.kix

 Code:

$nul = SetOption("NoVarsInStrings", "On")
$nul = SetOption("NoMacrosInStrings", "On")

$network=@lserver+"\netlogon\sms\client.bat"

if @error<>0 'Map Error was server: ' + $network + ' ' + @ERROR + ' - ' + @SERRO
R ? endif

$runaspath = @lserver + "\netlogon\runnas.exe"

if @error<>0 'Map Error was runaspath: ' + $runaspath + ' ' + @ERROR + ' - ' + @
SERROR ? endif

$cmd = '"' + $runaspath + '" user:domain\helpdesk "' + $network + '" /pass:password'
Shell $cmd

if @error<>0 'Map Error was execute: ' + @ERROR + ' - ' + @SERROR ? endif
$network + '  ' + $runaspath