Hi @JohanEliasson-4523 ,
Per my test, I got the same result as yours on my end. By default it will grab the cookie and attach to ClientContext.
For this issue, I would suggest you open a new issue in github: https://github.com/pnp/powershell/issues
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.