Set-Content -NoNewline was only introduced in PS v5 and would therefore not work -> replace with .net method
Set-Content -NoNewline was only introduced in PS v5 and would therefore not work -> replace with .net method
PowerShell/PSScriptAnalyzer