Those txt files need to be placed in your user data folder. The header needs to have a certain structure so Cubase can recognise it, but the rest is really just patchnames and their PC,MSB,LSB.
I did one myself for my DGX 650 keyboard.
They are simple txt files containing patch names and corresponding midi messages needed to recall a patch. You can create a patch script file yourself.