PowerShell - Error Handling
How can you modify this script to log errors only if the error message contains the word 'Access'?
try { Remove-Item 'C:\protected.txt' } catch { Add-Content -Path 'error.log' -Value "Error: $_" }