Fixes a bug when exporting more than 1 module, and the same for snapins, functions and secret vaults.
When piping into Sort-Object for the first module, the name would be converted into a string, so a second module being added simply appends to a string and not an array.
Description of the Change
Fixes a bug when exporting more than 1 module, and the same for snapins, functions and secret vaults.
When piping into
Sort-Object
for the first module, the name would be converted into a string, so a second module being added simply appends to a string and not an array.