I want to execute the following code:

code:
$dir1 = '\\server\share'
$dir2 = '%userprofile%\dir'
Run "%comspec% /c xcopy $dir1 $dir2 /e /d /q /y"

When the run-line is executed there's an error stating "Invalid number of parameters".
The same problem occurs if I do this with the Shell-option.
If this is done via a shell to a batch-file, the xcopy-command (with the same parameters)executes without problems. What can this be? Isn't it possible to execute a 'dos'-exe with parameters from within Kix?