Reputation: 7287
I have few old cmd/batch files that use start command to open new windows
If I am in powershell ISE, I was hoping they would automatically open in new tab, but it doesn't work that way
Is there a simple command I can replace "start" with to simply open new tabs? Just trying to reduce taskbar clutter
Upvotes: 3
Views: 3452
Reputation: 3063
You can use $psISE
automatic variable like in below example.
$NewTab=$psISE.PowerShellTabs.Add()
$NewTab.Files='C:\test.ps1'
Upvotes: 5