Kalpesh Soni
Kalpesh Soni

Reputation: 7287

Powershell ISE - how to start new tab by command

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

Answers (1)

Prasoon Karunan V
Prasoon Karunan V

Reputation: 3063

You can use $psISE automatic variable like in below example.

$NewTab=$psISE.PowerShellTabs.Add()
$NewTab.Files='C:\test.ps1'

Upvotes: 5

Related Questions