Feedback.RecommendedAction.psm1

Register-ScriptFeedbackProvider -Name 'Error Recommended Action' {
    param($context)
    if ($context.LastError.ErrorDetails.RecommendedAction) {
        [FeedbackItem]::new(
            'The last error has a recommended action:',
            $context.LastError.ErrorDetails.RecommendedAction
        )
    }
}