I just restarted and everything seems to work normally, cmd.exe didn’t appear at all this time and I think this is finally solved!
Thank you so much for helping me, I’m really grateful for all the support