Are there any good resources on what exactly the differences are between different Powershell tabs in ISE? For example, I can load a module in one and the other tabs can use it - yet variables (including globals) appear to be separate and distinct between different tabs.
I ask because I am using a Connection cmdlet (VMware PowerCLI’s Connect-VIServer) that appears to set a global variable ($global:DefaultVIServer). But after connecting in one tab, then connecting in another tab, the first tab suddenly “breaks” with an error:
You have modified the global:DefaultVIServer and global:DefaultVIServers system variables. This is not allowed. Please reset them to $null and reconnect to the vSphere server.
While I don’t necessarily expect anyone here to know about this specific cmdlet, I am looking for insight into how the different tabs in ISE interact - what they share, what they don’t, etc. And any guidance toward a clue on what this cmdlet might be doing that causes this break and how I can work around this issue - even if this means greater isolation between the tabs.
Any help would be appreciated.