# Issue - running pipeline in buildkite during PRs in Github

**URL:** <https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307>\
**Category:** General\
**Created:** [October 17, 2022, 4:31pm UTC](https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307 "2022-10-17T16:31:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephanie](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Stephanie](https://forum.buildkite.community/u/Stephanie)\
**Post date:** [October 17, 2022, 4:31pm UTC](https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307/1 "2022-10-17T16:31:31Z")

</div>

Hi,  
Trying to make a pipeline through a tutorial(1) about cucumber testing. He is using Mac, I’m using Windows so there is some issues.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/2X/a/a68846c33e3ea94c9978ed1d1571b0be7ca472af.png)

(1) = [https://www.udemy.com/course/build-a-cucumber-playwright-typescript-automation-framework/#instructor-1](https://www.udemy.com/course/build-a-cucumber-playwright-typescript-automation-framework/#instructor-1)

---

<div class="post-metadata">

**Author:** ![benmc](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/benmc/32/1159_2.png) [@benmc](https://forum.buildkite.community/u/benmc)\
**Post date:** [October 17, 2022, 10:10pm UTC](https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307/2 "2022-10-17T22:10:10Z")

</div>

Hey @Stephanie!

Thanks for your post and welcome to the Buildkite community! The course you’ve linked to is a paid course, so we can’t see the content of it. Are you able to share the contents of your `.buildkite/pipeline.sh` file? Or would you be able to email us at [support@buildkite.com](mailto:support@buildkite.com) if the contents are something you’d rather not share?

Additionally, have you followed our [set up guide](https://buildkite.com/docs/agent/v3/windows) for installing the agent on a Windows machine?

Cheers,

Ben

---

<div class="post-metadata">

**Author:** ![Stephanie](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@Stephanie](https://forum.buildkite.community/u/Stephanie)\
**Post date:** [October 18, 2022, 9:40am UTC](https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307/4 "2022-10-18T09:40:10Z")

</div>

My issue is I dont know how to write the powershell script. Error Im getting.

```auto
> ./buildkite/pipeline.sh | buildkite-agent pipeline upload
./buildkite/pipeline.sh : The term './buildkite/pipeline.sh' is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ./buildkite/pipeline.sh | buildkite-agent pipeline upload
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (./buildkite/pipeline.sh:String) [], Comman
   dNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/2X/e/eed91c03d6a14d6a6f3c8a12241f6ffdc9e166a0.png)

More info…

File location

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/2X/9/976ce476326a09467c1b3c9e6d8c9daeabda8c7c.png)

File content (pipeline.sh)

```auto
#!/bin/bash

set -euo pipefail

PIPELINE=${PIPELINE:-build}

function build() {
  cat <<EOF
steps:
  - name: ":desktop_computer: Automation"
  - command: "./scripts/buildkite-automation.sh"
EOF
}

$PIPELINE

```

---

<div class="post-metadata">

**Author:** ![benmc](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/benmc/32/1159_2.png) [@benmc](https://forum.buildkite.community/u/benmc)\
**Post date:** [October 19, 2022, 3:00am UTC](https://forum.buildkite.community/t/issue-running-pipeline-in-buildkite-during-prs-in-github/2307/5 "2022-10-19T03:00:57Z")

</div>

Hey @Stephanie!

Thanks for the follow up information!

I believe this might be a Windows file referencing quirk; Windows prefers `\` over `/`, so you’d need to change your referencing to `.\buildkite\pipeline.sh`, I also _think_ that PowerShell requires a leading `.` to mount the file and _possibly_ a call to Bash.

I think if you change your command to be the following, it might help resolve the issue:

```shell
bash . .\buildkite\pipeline.sh | buildkite-agent upload

```

Cheers,

Ben
