I have a rather strange issue, when I use the following code to retrieve the PS version from a list of servers, the PS version is truncated. However this doesn't happen all the time, as when I query a short list of servers the output is ok.
That's just the formatting system doing best-guess stuff. I've had it happen to me as well in odd places.
That's why I ALWAYS write bits bits this as a function. It makes it easier to pipe the function output to Format-Table or Format-List, where I can provide more specific formatting instructions. Remember, **your "main" code shouldn't worry about what the output looks like** . It should just output objects, as you're doing, and let the chips fall where they may. You can then take "external" steps to either explicitly format or, if you're really doing the right thing and building modules, define a custom format view for your output.