If you are trying to make a demo plug in type functionality, there is no built in method in script to set indesign to function as trial/demo.
Is that what you are trying to do?
Outright disable menu items? Not really.
But theres a workaround:
If you make a custom menu setup by going to Edit->Menus (Lets say we called it 'Test')
You can then use the following code in a startup script:
and this will apply your menu set. Now, most users will know how to turn it back on using Edit->Menus...but you can disable Edit->Menus.
If you want to go this route (I don't recommend it, really) make sure you backup the InDesign default menu set and have a script around to turn it back on:
(replace "Indesign Defaults Copy" with whatever you named your backup)
app.applyMenuCustomization("Indesign Defaults Copy");