Thanks Andre, appreciate all your help with this!
It seems like that is creating shape layer, the same as the menu item “Create shapes from text” instead of achieving the same effect as the menu item “create masks from text”… Do you have any idea on how to fix that?