You could look here for ideas:
Logging for non-PSADT commands - The Toolkit / Tips & Tricks - PSAppDeployToolkit Community
My guess is:
Get-WindowsCapability -Name *rsat -Online | Add-WindowsCapability -Online | out-string | Write-Log
You could look here for ideas:
Logging for non-PSADT commands - The Toolkit / Tips & Tricks - PSAppDeployToolkit Community
My guess is:
Get-WindowsCapability -Name *rsat -Online | Add-WindowsCapability -Online | out-string | Write-Log