PowerShell ISE automation, open file and cursor focus RRS feed

  • Question

  • We've always been able to automate ISE with commands like $psISE.CurrentPowerShellTab.Files.Add(...) to open a new script file in ISE.

    However, with the latest Windows update of Windows 10 Pro (1803) 10.0.17134 when a file is opened using $psISE.CurrentPowerShellTab.Files.Add(…) the focus is not on the editor windows of the file but the ISE tab.  Why has this changed?

    Thank you.

    Tuesday, June 5, 2018 6:30 PM