Command help

Im trying to use a command line to detect it people have a specific item… On Bedrock

Used

/testfor @p[r=10] {SelectedItem:{id:"minecraft:diamond_sword",tag:{display:{Name:"Item Name"}}}}
/execute @e {SelectedItem:{tag:{display:{Name:"item Name"}}}} ~ ~ ~ 
And scoreboard

I found that the commands dos not show up with JSON, idk what to do

Where are you entering these commands, the WebUI, in game, or at console?

These look more like the commands for the game itself. If you are using them in the WebUI > Logs tab, the you don’t need to use the /.
Other that, I suggest looking at the Minecraft Wiki for the commands usage.