Hello, I can share the PowerShell through python script I use
import subprocess
def windowsupdate():
pscommand =
"""
"""
import subprocess;
process=subprocess.Popen(["powershell","& {" + pscommand + "}"],stdout=subprocess.PIPE);
result=process.communicate()[0]
print (result)
windowsupdate()
Put all your PowerShell commands between the triple quotes in that big blank space. I haven't had issues with what PowerShell commands I can run. One thing to note is that you need to use forward slash's (/) if you're referencing a directory, otherwise XDR will have issues. Spent a few hours debugging before realizing that was the issue. Hope this helps!
... View more