But you can run .ps1 from .bat that you doubleclick.
It's not a security boundary, just something to stop users accidentally opening an email attachment like they will with bat/vbs.
A condition or a loop? You’re writing everything in C# then. Everything worth writing, anyway.