Alex F
04/11/2022, 4:55 PMKevin Kho
shell
argument. Did you try it? But I also don’t think we support powershell on Windows. Just bash on Windows. See this issueAlex F
04/11/2022, 5:38 PMKevin Kho
Alex F
04/11/2022, 6:05 PMKevin Kho
Alex F
04/11/2022, 6:11 PMAnna Geller
ShellTask
doesn't work, perhaps try using subprocess directly in your task?
import subprocess
from prefect import task
@task
def run_powershell_cmd(command: str):
subprocess.run(
command, shell=True,
)