Tch! %COMSPEC% is a fully qualified path, so may contain spaces. Always use adequate protection:
Code:
Shell '"'+%ComSpec% + '" /c mycommand.exe args > log.txt'