I receive the following error when I attempt to call powershell from a Python function:
Cannot load PSReadline module. Console is running without PSReadline.
I have a function called ps_cli() which is: os.system("powershell -NoProfile")
When I call it I get the following behavior/error:
This previously worked on Windows 7 and 8 machines (which I don't have access to currently) and from some of the things I read might be something to do with PowerShell 5 which is on Windows 10 machines. The idea behind the tool I'm writing is that it would work with any modern version of Windows on an account with appropriate privileges. As there are more advanced scripts I am writing and this seems to cause a few second delay I would like to find out how to get rid of this without doing:
Open Powershell using the parameter -PSConsoleFile and a PSConsoleFile that you previously exported with Export-Console.
Which was suggested in a forum post I saw. Any ideas would be greatly appreciated!