I'm ok with the handling of the csv file (i believe), just not the syntax on how to call the invoke-webrequest of the for-each.
for example
Import-Csv -Path 'C:\file.csv' | foreach {
-join ($_.Address3,' ', $_.Suburb,' ',$_.Town,' ',$_.Rural )
}
outputs the query i want and i want to run that against
invoke-webrequest -uri
https://www.nzpost.co.nz/tools/addre...inder/address/[number]/[{(join query here)}]
I'm trying to work out that [{( bit