When (before first KiCad installation) reading KiCad v4 documentation I have read that there are some problems as KiCad wants to save some default settings into file in the directory it was loaded to, but Windows don’t likes anyone touching files in Program files directory.
Because of this since my first installation (4.0.6) I always install KiCad (Windows 7 64 bit) into my directory C:\Programy…
I have no problem running those scripts - in Command line I see:
I have written it to let you know that KiCad is not fixed at C:\Program Files…
Giving up the natural assumption that what you said is true and assuming that you may not be truthful, I can say that I suppose you didn’t done a Clean install.
I suppose you missed kicad files in [User]\AppData\Roaming and may be somewhere there the old directory was written.
I don’t know the current documentation files, but in those (V4) I have read, there were information about those files.