In 6+7, you use the "USE" command and select the potion. Potions can be used on any character, rather than just on yourself.
In 8, you select the "hand" icon next to the portrait (or use the "use" key defined in the options) and you'll see a list of the items in your inventory. Note that you cannot use potions in your shared inventory during combat, you can only use items in your personal inventory. You can also only use potions on yourself. (This is why Cure Paralysis is a powder and not a potion.) Alternatively, with a potion in hand on the cursor inside the inventory menu, you can click the "use item" button on the bottom of the screen, which will quit out of the inventory menu and use the item.
Post edited May 25, 2013 by bevinator