Guessing the doc here just doesn't include the fact (I'm assuming this is true) that this was introduced in PowerShell 5.
For my use case, I can switch over to PowerShell 5, but just a heads up.
Side note: Have you considered splitting this up to include an independent Metadata module? It seems odd that there are no generic Cmdlets for writing/updating PowerShell data files...
Hi!
If it matters, it looks like this is currently tied to PowerShell 5 or later.
I get the following error when attempting to load/use the module:
Looking at constructors for that method, I only see the three parameter version:
PSVersionTable:
Guessing the doc here just doesn't include the fact (I'm assuming this is true) that this was introduced in PowerShell 5.
For my use case, I can switch over to PowerShell 5, but just a heads up.
Side note: Have you considered splitting this up to include an independent Metadata module? It seems odd that there are no generic Cmdlets for writing/updating PowerShell data files...
Cheers!