Hello MSTechie,
The Join-String cmdlet joins or combines, text from pipeline objects into a single string.
If no parameters are specified, the pipeline objects are converted to a string and joined with the default separator $OFS.
By specifying a property name, the property's value is converted to a string and joined into a string.
Instead of a property name, a script block can be used. The script block's result is converted to a string before it's joined to form the result. It can either combine the text of an object's property or the result of the object that was converted to a string.
----------------------------------------------------------------------------------------------------------------------------
Hope this answers all your queries, if not please do repost back.
If an Answer is helpful, please click "Accept Answer" and upvote it : )