I am running into issues running powershell scrips from my explorer window. I can run them just fine when i highlight the code and run. I think this is because it opens a new terminal when i try to run the code and this marks it as a "code" terminal and not a powershell terminal.
The terminal name is 'Code', but it is still the PowerShell. From the error message, it did not recognize Get-Mailbox. It should be your code issue. Could you confirm?
I am running into issues running powershell scrips from my explorer window. I can run them just fine when i highlight the code and run. I think this is because it opens a new terminal when i try to run the code and this marks it as a "code" terminal and not a powershell terminal.
Any ideas on how to fix this?