Search notes:

PowerShell: the preference variable $OFS

The preference variable $OFS contains the output field separator which specifies the string that with which elements of an array are joined when converted to a string.
$ary = 'foo', 'bar', 'baz', 'etc'

$OFS = ';'

write-host "$ary" # Note the quotes!
#
#  foo;bar;baz;etc
#
Github repository about-PowerShell, path: /language/variable/preference/ofs.ps1

See also

The influence of $OFS when printing an array
Preference variables

Index