Hi, I'm trying to execute a PowerShell script usin...
# ask-community
Hi, I'm trying to execute a PowerShell script using the
api with no luck. I was wondering if it's possible, or is the only way to wrap it within a bash script? Also, how do I pass parameters to the script?
Copy code
from dagster import file_relative_path, graph
from dagster_shell import create_shell_script_op

def my_graph():
    a = create_shell_script_op(file_relative_path(__file__, "hello-powershell.ps1"), name="a")
Hi @Dagster Jarred and @Tim Castillo FYI, I could not find anything in the documentation/Slack about this. Would appreciate your help with this.
You are correct that we don’t have a way of executing powershell scripts without wrapping in shell scripts unfortunately, and it would indeed seem that there’s no way of providing parameters to the script, I added issues to track both of these: https://github.com/dagster-io/dagster/issues/11748 https://github.com/dagster-io/dagster/issues/11747
🙏 1
Thank you @chris