$string1 = "The quick brown fox "
$string2 ="jumps over the lazy dog"
$string1 + $string2
This should only be used for a fixed number of strings.
For combining a lot of strings or an unknown number, refer to the StringBuilder
For combining a lot of strings or an unknown number, refer to the StringBuilder
PS C:\> $string1 = "The quick brown fox " >> $string2 ="jumps over the lazy dog" >> $string1 + $string2 The quick brown fox jumps over the lazy dog