You can upgrade anyone you want to using your own miles, whether or not you are travelling with them. Log on to your Skywards account, select Upgrade Rewards and enter the relevant PNR and name.
If you call to reserve the upgrade, they could also link the PNRs.