My mistake, thank you for correcting me! I was testing for solutions and it seems the command bar somehow does not have permission to access plugin functions.
Your best bet is to turn on plugin debugging inside studio settings and then save your code as a local plugin and reload it every time you publish changes.