Not so much a solution for your issue but I have some suggestions.
If you are trying to map the X drive as a persistent drive then leave out “:yes”. This is not valid in kixtart. Deleting the X drive will most likely fail because if it is mapped as persistent it also needs to be removed as persistent. When deleting drives I always assume all drive are mapped as persistent. It is just a safe guard that the drive will always get deleted no matter if it was mapped persistent or not.

Is this all the code? If so then the RETURN is unneeded. Actually there is almost always a way to not use returns, goto’s and labels. They just make the code messy.

- Chuck Norris once sold ebay to ebay on ebay.