In short, you need to delete the file profile.ps1 which is located at: "%userprofile%\Documents\WindowsPowerShell\profile.ps1"
This script is installed with Anaconda, and it's not always removed when uninstalling. The script tries to run every time PowerShell is initiated. Deleting the script will fix your issue.
Refer to this excellent answer explaining how the file is created: https://stackoverflow.com/a/69963779/17629081