title: How to move a file to another directory and change the content of it using pipe in one line in Powershell?
body: <p>Below code does not work. But doing them seperately in two line works.</p>
  
  <p>Move-Item file.txt \same-directory | Set-Content -Path \same-directoy -Value "New content"</p>