Hello Robert,
Thank you for posting question on Microsoft Windows Forum!
Based on your query of getting PowerShell command on every start up. Well! A PowerShell window appearing at startup highly likely indicates a script is being triggered by a startup application, a scheduled task.
Some apps use PowerShell to check for updates or configure settings when you log in. The suggestion here is to check the Task Manager Startup List by pressing Ctrl + Shift + Esc to open the Task Manager. Click on the Startup apps tab. Look for anything named "Windows PowerShell," or any app/script that looks suspicious or unfamiliar. Right-click the item and select Disable.
Another point worth mentioning here is to inspect the Task Scheduler by pressing the Windows Key, type Task Scheduler, and hit Enter. Click on Task Scheduler Library on the left. Look through the list in the center. Look for tasks that mention "PowerShell" or have triggers set to "At log on" or "At startup." If you find one that should not be there, right-click it and select Disable.
Windows has a specific folder where shortcuts can be placed to run at boot. Try to check the "Startup" Folder by pressing Windows Key + R, type shell:startup, and press Enter. If you see a PowerShell shortcut or a .bat / .ps1 file here, delete it if you do not recognize it.
In case, you find a weird script launching PowerShell (especially with encoded/obfuscated arguments), it might be malicious. Run a full antivirus scan. Windows Security → Virus & threat protection → Full scan or Consider an offline scan by navigating to this path: Windows Security → Virus & threat protection → Scan options → Microsoft Defender Offline scan.
Hope the above information is helpful! If it helps you getting more insight into the issue, It is appreciated to consider clicking "Accept Answer". Should you have more questions, feel free to leave a message.