There's most likely a problem in the file. Perhaps it exists but it's empty? If that's the case, try removing the file.
You can also try the steps in this link:
https://windowsreport.com/windows-terminal-not-working/
Considering it's a problem with the terminal app, why do you think the problem is related to PowerShell?