I am trying to make a button that loads either a cmd or powershell windows in the current directory, however I want to use the windows terminal version not the standard dos or power shell CLI.
The code I am using below for powershell is:
cd {sourcepath}
@admin:wt.exe powershell.exe
The code I am using below for cmd is:
cd {sourcepath}
@admin:wt cmd.exe
The code does load either a cmd or powershell windows terminal but not in the current directory, it always loads to C:\Users\User>.
How can I get either a command prompt or powershell to load in the current directiory using windows terminal?