I have written the SPE powershell script in my local Sitecore 9.1.1 sandbox environment and trying to execute, it is asking session elevate privilege to enter credentials. Even though I am entering admin credentials I am getting "Could not validate access using the provided credentials" error.
- I have verified Cognifide.PowerShell.config is present.
- I have enabled the Cognifide.PowerShell.IdentityServer.config since I am using Identity server
- SPE version 5.1 which is compatible with Sitecore 9.1.1