PowerShell: Running Scripts Is Disabled on This System
Five things produce this error and only one is fixed by Set-ExecutionPolicy. The scope that is actually winning, the mark of the web that makes RemoteSigned refuse a file, and why fixing it in PowerShell 5.1 does nothing for PowerShell 7.