This is what I have (the addresses are hard coded but I want to use variables for dynamic):
Set-Content -LiteralPath $test -NoNewLine -Value (
@'
From:
hardcodedAddress1
hardCodedZip1
'@ + (Get-Content -Raw test)
)
The code below doesn't work.
Set-Content -LiteralPath $test -NoNewLine -Value (
@'
From:
$address1
$zip1
'@ + (Get-Content -Raw test)
)
Anyone know how to get it working with variables? Edit1: $test is my path to a csv file