I am trying make a series of commands, each separated by a carriage return, but something isn't working.
I thought that the following would be what I wanted:
subprocess.call(["PowerShell", r"cd C:\Users\Spencer", "dir"])
but it appears this simply puts each command on one line, separated by spaces
I also tried the following:
subprocess.call("PowerShell")
subprocess.call(r"cd C:\Users\Spencer")
subprocess.call("dir")
but it appears that each subprocess. call happens in a new terminal?
Thanks for any help.