I know essentially nothing about Powershell, but you can try adding one of these to your vifmrc
(the first one should work if you have changed 'shell'
option, otherwise try the second one):
autocmd DirEntry * !Save-CdCommandHistory
autocmd DirEntry * !powershell -c Save-CdCommandHistory
You can experiment by running these interactively in command-line first (:!...
) and then write command that worked to vifmrc
.