You could be infected with malware like this user.
You first need to determine what scripts are being executed to see if they are legitimate or not.
Open a powershell prompt with "run as administrator" and execute this command.
Get-WmiObject Win32_Process -Filter "name = 'powershell.exe'" | select commandline
What are the script file names? Do you recognize the folder names being related to something that you intentionally installed?
In the link that I posted, there are instructions on how to use Autoruns to look for Powershell related startup entries. You can use that tool to disable/delete those entries.
If you see strange names like 747D9CF3-170B-4097-A847-D75876F01A8C.ps1 then you probably are infected. Run a Defender scan and an MRT scan (see link).
If they don't detect anything, install Malwarebytes and run a full scan.