how do i run powershell alike commands using asyncio.create_subprocess_shell()?
asyncio.create_subprocess_shell(cmd=whatever), and the "whatever" variable is a powershell command that jst shows a messagebox using powershell: powershell.exe -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('testing', 'testing', 'testing', 'testing')" 'powershell-CommandAdd-Type' is not recognized as an internal or external command, operable program or batch file. if i were to run the command above in subprocess.run() it would generate a prompt. however, if i do so in asyncio.create_subprocess_shell() it does not work. i've tried to use subproces
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.