Get-windowscapability -name Rsat* -online | Add-windowscapability -online Today

Before running this command, ensure the following requirements are met:

Would you like a script that logs each install result to a CSV file as well? Before running this command