How it works...

At the first step, we simply get the help information for the Get-Command cmdlet. This output is an object—performing a text lookup operation is best done when the output is text. Out-String converts this output into a plain string; the only issue is that the whole block of text is one single string. A text lookup this way may not be really helpful. We use the -String switch to break the large string into smaller pieces (paragraphs in this case). Next, we use the Select-String along with the keyword to select the string that contains our keyword.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.220.114