Hi, @Salanje Banda
Thank you for posting in Microsoft Q&A forum.
There is no specific command mentioned to remove the old version of Microsoft Store in a task sequence. It is recommended to use System Center Configuration Manager to manage Microsoft Store apps rather than removing them.
If you need to remove specific provisioned Microsoft Store apps, you can use the DISM command to remove them, but it may cause issues with the sysprep operation.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".