#TodayILearned (or probably re-learned tbh) that to determine if a Powershell session is in constrained language mode or not, you can type this:
$ExecutionContext.SessionState.LanguageMode
#TodayILearned (or probably re-learned tbh) that to determine if a Powershell session is in constrained language mode or not, you can type this:
$ExecutionContext.SessionState.LanguageMode