Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Programmatically Open Script in PowerShell ISE

$
0
0

Summary: Use Windows PowerShell to open a script in the Windows PowerShell ISE.

Hey, Scripting Guy! Question How can I use Windows PowerShell to run a script that will open another script in a new tab
           in the Windows PowerShell ISE?

Hey, Scripting Guy! Answer Use the CurrentPowerShellTab Files Add method from the $psISE object, for example:

$psISE.CurrentPowerShellTab.Files.Add("C:\fso\Get-Battery.ps1")


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>