CLI DOSPROMPT=powershell with an EXEC for pwsh.exe no longer works

viz, the documentation:

<command> 	Overrides the default executable to launch when opening a PowerShell prompt. For example, you may wish to create a button which runs PowerShell 7 instead of Windows PowerShell.
Example: CLI DOSPROMPT=powershell EXEC="C:\Program Files\PowerShell\7\pwsh.exe" 

I have a button that is just
CLI DOSPROMPT=powershell EXEC="C:\Program Files\PowerShell\7\pwsh.exe"

However it seems that it'll only open at PS C:\Program Files\PowerShell>; I haven't tried feeding it a variable of the current directory, largely bc I don't know how! :slight_smile:

Does the path C:\Program Files\PowerShell\7\pwsh.exe exist on your system?

Very fair, I should've said that it does!

I don't have that version of PowerShell installed, but everything works normally if I run the normal version via an explicit EXEC path:

CLI DOSPROMPT=powershell EXEC="C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"

It's possible the alternative PowerShell broke how its command line arguments work, but documentation says they still work the same as before as far as I can tell.

You can use Task Manager's Details tab, and the Command Line column, to see the command line Opus is generating and try running it directly or modifying it.