WoW:API AutoEquipCursorItem
AutoEquipCursorItem();
straight forward, it equips the item currently on the cursor.
Example - equips 6 items in sequentional backpack slots.
/script i=2; while i<=8 do PickupContainerItem(0,i); AutoEquipCursorItem(); i=i+1; end;