I'm currently writing some PS scripts to help me with some tasks at my job. This has been going great, but I've noticed something very wrong when I'm attempting to make changes to a script.
In ISE, everything works fine. When I make changes and run the script, the changes are reflected and it does what it has been told to. However, if I run the script from Explorer (by double-clicking on the script) it runs what appears to be an old version of the script without any of the changes I've made.
If I rename the file to something else, it runs the updated code. So I edit in the renamed file. Except I have to rename it AGAIN to make changes. I ensured there were no powershell.exe processes lingering about that might be affecting things.
Is there some weird script cache in PS that I don't know about and can't find info about?