Run selected test from the list

Hi, I would like to have ability to select tests from the list before I run my plan. Currently when I click Run Jenkis execute the following commands:
npm install
npx wdio run wdio-jenkins.conf.js

in this case all tests scripts will be run. But wdio give me possibility to run selected test by:
npx wdio run wdio-jenkins.conf.js --spec dir/to/selected/test/script.js

I would like to be able to select (by html form?!) files and pass them to this command.
Can someone help me and tell how to do it or where I can find the information?