====== New line in PowerShell string ====== Append "`n" to the end of the string. Or use the following function function AppendNewLine { $tmpData += $args[0] + $args[1] $tmpData += "`n" return $tmpData } $string += AppendNewLine "Parameter" "Value" $string += AppendNewLine "Parameter1" "Value1"