When I run Powershell or Powershell (x86) I get the following message: ". : The term '{custom script file}' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again."
Which is a script I've created a long time ago. I moved the file to a different location and now that error comes up. If I put the original file or an empty with the same name back into the error location, it opens fine with no message.
How do I fix this?
EDIT: I found the issue. Somehow the path to one of my scripts got into $profile. Not sure how but after removing the line all is well.