Use prompt for filename for .exe / .app?

hi, i’d like to use the prompt for filename in such a way that i could store a variable with a user-selected exe or .app - is this possible?