To import the Modelstore in a temporary schema and at the end apply follow steps:
Steps:
1. Open SSMS (SQL Server Management Studio) (Press the Windows Key + R, Run will open Type SSMS and enter)
2. Connect to the SQL Server instance where AX database resides
3. Expand to Databases > MicrosoftDynamicsAX_model > Security > Schemas
4. Right click > New schema
5. Type in the temporary schema name (TempoSchema) and select the schema owner and click "OK"
6. Initialize the temporary schema
For Initialize the temporary schema Use the command below:
Initialize-AXModelStore -AOSAccount "Domain\AccountName" -SchemaName <TempoSchema> -Server <ServerName> -Database <DatabaseName>)
Import model store to temporary schema
Syntax: Import-AXModelStore -File <filename> -TempoSchema
Example:
Import-AXModelStore -File “C:\AX\AX_ModelStores\AXModelStore.axmodelstore” -SchemaName “TempoSchema” –IdConflict overwrite

//-Config MicrosoftDynamicsAX -Details (OPTIONAL FOR CONFIG)
Import-AXModelStore -Apply:TempoSchema -Config MicrosoftDynamicsAX -details