Probably the missing quote on the end of this line:

MD "\\" + @WKSTA + "\d$\kix\scripts