Hello Jenna Farrag
Welcome to Microsoft community and hope you are doing great.
I am aware of the present situation is that your PowerShell windows keeps pop-up when your game playing and Laptop charging.
Based on my queries, the problem is usually caused by third-party applications starting PowerShell, so I recommend that you try to check the Settings in the following two places for the use of PowerShell, the red box could see the actions, and the green box could see at what point in time the program will be running:
Note: Press and hold down Windows > Type task Scheduler > Run as administrator to view all these plans
Disclaimer: A “clean boot” starts Windows with a minimal set of drivers and startup programs. It helps to determine whether a background program is interfering with your game or program and to isolate the cause of a problem.
These steps of "clean boot" might look complicated at first glance. However, to avoid any trouble for you, please follow them in order and step-by step so that it will help you get you back on track.
Feel free to post back if any updates.
Best Regards,
Chandy|Microsoft Community Support Specialist