title: How to distinguish between PowerShell remote ISE and remote console?
body: <p>Is there a way to distinguish between if a PowerShell script is being run via a remote session started in an ISE or a remote session started in a console?</p>
  
  <p>We would like to set some of the RawUI variables and need to distinguish between ISE and console. Locally, Test-Path variable:global:psISE does the trick, but when connecting remotely from an ISE this returns false and our UI adjustments fail. </p>
  
  <p>Test-Path variable:global:psISE</p>
  
  <p>The session is from an ISE it is just from a remote ISE.</p>