- Why does invoking a Powershell script block return a collection?
- $code = {"a"}
- $code.Invoke().Gettype().FullName
- System.Collections.ObjectModel.Collection`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
- $code.InvokeReturnAsIs().GetType().FullName
- System.String