private static string ToPowerShellTxtValue(ICollection<string> value) { if (value == null || value.Count == 0) { return null; } var sb = new StringBuilder(); foreach (var s in value) { sb.Append(s); } return sb.ToString(); } }