Comprehensive Windows Server Update Services (WSUS) cleanup, optimization, maintenance, and configuration PowerShell script.
Why do you think that https://github.com/HanSolo71/Integrate-PDQ-Install-Into-MDT-Imaging is a good alternative to Optimize-WsusServer