Welcome to Microsoft Q&A Platform.
This batch may help you.
How to use Batch file to download & install Windows Updates on Windows 10
https://www.thewindowsclub.com/batch-file-to-download-install-windows-updates
Besides, there is a good script from StuartGeeves for feature upgrade.
Windows 10 Feature update via cmd, Powershell or GPO
https://social.technet.microsoft.com/Forums/windows/en-US/51104081-4ed7-4fdd-8b12-5d1f5be532ae/windows-10-feature-update-via-cmd-powershell-or-gpo?forum=win10itprogeneral
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.