How to use this cmd - Prefs RESTORE=replace,all FROM="D:\sync" with option to select a backup file when restoring
You can use {dlgopen}
to show a file selection dialog and insert the selected path into the command.
https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Codes_to_display_dialogs.htm