Determining the PowerShell Constrained Language Mode is important for assessing security restrictions on script execution. Constrained Language Mode limits certain operations, such as COM object creation and .NET calls, which can impact payload execution.
Command:$ExecutionContext.SessionState.LanguageMode