How can you get a list of files from a specific storage folder

You have to use the Obsidian API, it’s necessary for the script

Ideally - to get the same functionality as when opening a file (i.e. a form with a list and search), but without opening a file, you just need to pass the selected name further on