title: powershell find and replace all in one line
body: <p>I have this line of code which gives me domain\username. However, I need to replace the \ with  _. Do I have to do this multiple lines or I can do this in one line?</p>
  
  <pre><code>$UAN = $userProfile["AccountName"].Value
  $UAN = $UAN.Replace("/","_")
  </code></pre>
  
  <p>The above does not work even if it's multiple line.</p>