To macro items, the command is /item [Name] < target >.

So to macro the potion to be used on yourself, you put in /item "Potion" <me>. If you want a little more flexibility, you can macro /item "Potion" <t> and it will be used on your current target, so you can use potions on others (or use status potions on enemies).