I've finally worked through a number of syntactical challenges translating the Core Service API into PowerShell instructions for the seemingly simple task of creating a Bundle via PowerShell.
Using the code below I get the error shown:
$bundleFolderData = new-object VirtualFolderData
$location="tcm:aa-bb-2";
$bundle = $core.GetDefaultData([ItemType]::VirtualFolder, $location, $defaultReadOptions);
$bundle.Configuration = "<Bundle xmlns=""http://www.sdltridion.com/ContentManager/Bundle""><Items /></Bundle>"
$bundle.TypeSchema = new-object LinkToSchemaData
$bundle.TypeSchema.IdRef = "tcm:aa-cc-8"
$core.Create($bundle, $defaultReadOptions)
Exception calling "Create" with "2" argument(s): "Unknown Virtual Folder Type: "http://aaa.net/tridion/schemas/workflow/content-escalation". A Virtual Folder Cartridge is not registered for this type." At line:1 char:1 + $core.Create($bundle, $defaultReadOptions) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : FaultException`1
I've checked that the schema reference is the one I want to add to the Bundle and that it exists.
I've tried mixing and matching the Publication references form owning to contextual to no avail... an pointers?