Using powershell is almost impossible. It takes almost 6 minutes to load on a pretty fast computer.
I think it might be relevant that I use cmder and scoop. It's also slow in cmder.
What can I do to solve it or at least find the cause?
It's a company pc and uses Sentinel One as antivirus, which I cannot modify.