As far as I know, it is not possible to do companion upgrades at the electronic kiosks. They must be done by an actual agent. And buying two separate itineraries and putting your number on both would not work, because your name has to match the number in order for the upgrade to go through.