Ensure your Windows 10 version is 20H2 or later to use this method. You can check your version by going to > System > About . If you're on an earlier version, you might need to use a different method or update your system.
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online rsat windows 10 20h2 download