Is it possible to detect from within Powershell whether it is a nested shell?
If I open a Powershell or cmd.exe window, and then type powershell <enter> in there, is there a magic $host.somevariable I can query to find out if it is an "inner" shell?