Ugh, 401s are the worst. Have you tried using `-UseBasicParsing`? Some older systems freak out without it.
Also, maybe your creds have special chars? PowerShell can be weird with those. Try wrapping them in single quotes or escaping them.
If you're still stuck, Postman is a lifesaver for testing APIs before coding. Helps rule out if it's your script or the server.
Also, maybe your creds have special chars? PowerShell can be weird with those. Try wrapping them in single quotes or escaping them.
If you're still stuck, Postman is a lifesaver for testing APIs before coding. Helps rule out if it's your script or the server.
