Trouble logging in using Powershell

Trying to login and retrieve a secret, but i keep getting a permission denied. My terminal is being run with admin privileges, and the account i am trying to log into is also an admin account. No matter what i try i just keep getting denied, any help would be appreciated!

This is script i was trying to use.

Please do not use screenshots of terminals - copy the text instead, so that, people responding can quote parts of it. When doing so, make sure to enclose the text in ``` marker lines to protect it from being treated as formatting directives by the forum code.

VAULT_ADDR is supposed to be set to an URL, not a namespace.

Setting any kind of environment variable is specific to the Vault CLI. If you’re using native PowerShell Invoke-RestMethod, environment variables are irrelevant.

Please do not obfuscate URLs (fooURL) when asking questions where the URL being incorrect is highly likely to be the problem.

Thanks for the response, I figured out the issue a little earlier!