Find and replace in files fails
You can’t read and write to the same file while it’s open. Get-Content opens the file for reading and, at the same time, Set-Content tries to write to it. Put the Get-Content call in parentheses; it will open the file, read its content and close it. (Get-Content $FileFullpath) | …