I use the new windows terminal with Powershell 7.x, my purpose is doing a script in my first tab, launch a new tab from this script and execute a new script into it. Currently I have ma function like this:
function test {
Write-Output 'run my script'
wt -w 0 nt; # open new tab
Write-Output 'run my other script' # => script launch in the current tab but not in new one
}
Any idea how to do that ?