Summary: Use Windows PowerShell to open a script in the Windows PowerShell ISE.
How can I use Windows PowerShell to run a script that will open another script in a new tab
in the Windows PowerShell ISE?
Use the CurrentPowerShellTab Files Add method from the $psISE object, for example:
$psISE.CurrentPowerShellTab.Files.Add("C:\fso\Get-Battery.ps1")