Either way you suggest would do the job, but if you want a really workmanlike solution, you need to install a IEC panel receptacle on the amp and plug your PC into it. That's how CJ would have done it.
Additionally, that'd allow you to try lots of different power cords. Oh joy!
Additionally, that'd allow you to try lots of different power cords. Oh joy!