I'm a coding collage major, and I am using my school's computer to make a cross-platform script for Linux and Windows. I need to run the script to test it, but PowerShell keeps responding with
Cannot create type. Only core types are supported in this language mode.
I cannot use admin, as this is not my computer. I really don't wanna restart on my home computer, and then I cannot work on it in class. Can anyone help?
I tried inputting $ExecutionContext.SessionState.LanguageMode = 'fulllanguage' but it still did not work. PowerShell responded with
InvalidOperation: Cannot set property. Property setting is supported only on core types in this language mode.
When I boot up PowerShell, the starting text is
PowerShell 7.4.1
[Constrained Language Mode]