# Choice parameter depending on files

**URL:** <https://community.jenkins.io/t/choice-parameter-depending-on-files/10197>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [October 16, 2023, 2:05pm UTC](https://community.jenkins.io/t/choice-parameter-depending-on-files/10197 "2023-10-16T14:05:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/philipp/32/5831_2.png) [@Philipp](https://community.jenkins.io/u/Philipp)\
**Post date:** [October 16, 2023, 2:05pm UTC](https://community.jenkins.io/t/choice-parameter-depending-on-files/10197/1 "2023-10-16T14:05:51Z")

</div>

Hi there,  
i want to use a choice parameter. The options of the pipeline parameter should depend on files on the agent system: The options should be the filenames in a specific folder.

Is there a possibility to run a powershell script before the stages are called? I don’t want to use the extensible choise plugin.
