Differences between the PowerShell_ise.exe and PowerShell.exe

From here Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe /c dir still works though, and more information is available here http://blogs.msdn.com/powershell/archive/2009/02/04/console-application-non-support-in-the-ise.aspx Console Application output is not colorful STA by default Try $host.Runspace.ApartmentState powershell is MTA by default (ApartmentState shows up as Unknown) but can be started in sta mode … Continue reading Differences between the PowerShell_ise.exe and PowerShell.exe