if ("$string" -match "$key")
{
Write-Host "Attempting to replace $string with $value in $sourcefilename"
(Get-Content $sourcefilename).Replace("{{$string}}",$value) | set-content $destinationfilename
}
}
Can someone kinldy tell me how to replace the respective values with strings .