Replaceitem not working on Bedrock

//ads -- adsterra.com -- native banner
?>
For some reason, if I try using /replaceitem
it won't execute the command inside of a command block. This is the command I used:
/replaceitem block -10 -58 -27 slot.container 1 ender_pearl 1
Pictures about "Replaceitem not working on Bedrock"



How do you use Replaceitem in Minecraft?
You can use the /replaceitem command to instanty replace one item with another item. You can replace armor items worn, weapons held in your hands, items stored in chests and items in your inventory/hotbar. This is a great way to quickly put armor on a player during a Minecraft battle or change out a worn out weapon.How do you use the Replace item command in bedrock edition?
Minecraft Bedrock Edition: Entering and using the replace item command. The default command syntax for current versions of Minecraft Bedrock Edition is "/replaceitem block <position> slot. container <slotId> <itemName> [amount] [data] [components]" without quotations. This will replace a block with another item.How To Use The Minecraft Replace Item Command In Bedrock MCPE! (Updated)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Miguel Á. Padriñán, Andrea Piacquadio, Helena Jankovičová Kováčová, cottonbro