Why does this command work in the commands window but not through MakeCode?!

I’m trying to create a permanent high score table that can interface with MakeCode. Getting the code to record scores to the scoreboard is easy enough, but getting the scores back from the high score table and into makecode is so far impossible!

I am trying to use a comparison to get the score, and I can verify that the command works in the “chat and commands” section, but not via the “execute” block in MakeCode! Here is the code:

/execute if score @p HighScore = @p Score run tell @p HIGHSCORE!

The error is a syntax error "unexpected “score” at…

What is going on?