Hello,
Please refer to the information in the link below
How to run the WSUS Server Cleanup Wizard from command-line | Vanstechelman.eu
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.