Sorry I made a mistake! Please don't care about my first question. This is the real error code I get!

C:\winntls\kix32 test.kix
Invalid number of parameters

My test script looks like:

$LogFile = "c:\test\Test.log
shell "xcopy c:\winnt\*.* c:\wintmp\ /s /v /e >$LogFile 2>&1"
exit

I also tried without the parameters 2>&1 because there is already a question concerning this problem.

I general, I have the same problem when I'm using DOS NET USE or kix USE. I just want to send this outputs to a logfile. Is there someone how can help me?

Thank you for your answer.
Manuel