diff --git a/Tools/Create-StandaloneScript.ps1 b/Tools/Create-StandaloneScript.ps1 index 2d928df..e58e6e6 100644 --- a/Tools/Create-StandaloneScript.ps1 +++ b/Tools/Create-StandaloneScript.ps1 @@ -192,7 +192,7 @@ Begin { if (-not($ImportModuleCommands.ContainsValue($Count))) { foreach ($ModuleName In $Module) { if (-not(($_.Contains("Requires")) -and ($_.Contains($ModuleName)))) { - $StringBuilder.Append($_) | Out-Null + $StringBuilder.AppendLine($_) | Out-Null } } } else {