News
Whether the string you're looking for inside a text file is a single word or a complicated pattern, PowerShell has the ability to find and replace just about anything.
To put it another way, you can embed PowerShell commands within a Write-Host statement (though subexpressions can be used outside of a write-host statement, as you have already seen).
It could also mean logging to a text file with Add-Content or logging to the Windows event log. One of the benefits of logging to the event log is that it's semi-permanent and can easily be parsed ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results