title: How can I determine from a PowerShell script in runtime in which host it is running?
body: <p>I try to figure out whether my script is running in PowerShell.exe or in the ISE. If I am running in PowerShell.exe then I would like to change the size of the console window, but I don't want to impact the ISE, if I don't.</p>