rename-item A B
When typed in the shell, and provided there is a file A at the local directory, the rename works.
When I write a one-line script, put it in a folder, export the path to this folder, go to another folder, containing a file A, and call the script, here is what happens:
'rename-item' is not recognized as an internal or external command,
operable program or batch file.
What am I missing?