In a for loop, I search for various patterns in a file and replace them with pre-defined token :
((Get-Content -path $file -Raw) -replace $pattern, $tokenValue) |