This function runs fine from VS code as a python script. But when I make exe with pyinstaller from the script, powershell does not get invoked. What am I missing here? Other