Thank you for posting in Microsoft Q&A forum.
We can deploy a package to uninstall the client for a collection of computers with the command line, remember to add the CCMSetup.exe file as the source file.
It's the method recommended by the official documentation:
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".