Да, уже погуглил
![Smile](images/smilies/new/smile.gif)
Спасибо за помощь!
Окончательный рабочий код
Код:
![Выделить весь код](images/misc/selectcode.png)
$variable = "~0"
$orig = Get-Content -Path C:\Users\Home\Desktop\orig.txt
$copy = Get-Content -Path C:\Users\Home\Desktop\copy.txt -Encoding UTF8
$js = Get-Content -Path C:\Users\Home\Desktop\1.txt
$orig = $orig -replace "::variable::",$variable
$copy = $copy -replace ":::variable:::",$variable
for($i=0;$i -le $orig.count;$i++)
{
$js=$js -replace $orig[$i],$copy[$i]
}
$js | Out-File C:\Users\Home\Desktop\Result.txt