Get one of those 3" angle type "L" brackets.
Mount it above your outlet to the stud. Then attach a cable tie to your power cord from the "L" bracket.
Mount it above your outlet to the stud. Then attach a cable tie to your power cord from the "L" bracket.