Just like in question, here are lines of code that I used that may have caused the problem. I was installing Git for powershell
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1")
. $env:github_posh_git\profile.example.ps1
and after these lines I quote
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm
cd ~\Documents\WindowsPowerShell\posh-git
.\install.ps1
"This will add the proper line to your profile.ps1 file, and posh-git will be active the next time you open your prompt" And here is the problem, everytime I launch powershell I get import-module error (I deleted the files of git and installed it in a different way)