title: Capture substring at different positions from command's output in powershell
body: <p>I am running a command in windows terminal:</p>
  <pre><code>PS E:\&gt; netsh wlan show profile name=&quot;wifi_profile&quot; key=clear | findstr &quot;Key Content&quot;
      Key Content            : password1234
  </code></pre>
  <p>So here I am trying to get only <code>password123</code> (wifi password) <strong>in output</strong> for any profile</p>
  <p>Is there any method in powershell by which I can do it?</p>