I can export external content type from SharePoint Designer or Central Administration. However, I want to export ect as bdcm file with powershell in order to export ect automatically.
There is an exapmle in techNet Export-SPBusinessDataCatalogModel;
$Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Model" - Name "ContosoModel" -ServiceContext http://contoso Export-SPBusinessDataCatalogModel -Identity $Model -Path "C:\folder\model.bdcm"
File was created with this command but the file content is not similar with SP Designer export file.
How can I do that.