Strange characters ' # ' or '??#' in Command Prompt , Powershell and VS Code Terminal. Commands don't run because of this. How to fix?

Strange characters ' # ' or '??#' in Command Prompt , Powershell and VS Code Terminal. Commands don't run because of this. How to fix?
