Valetude Clean Room Segments Button

Hi,
Has anyone got this working that could help? I can see various code snippets knocking about, but I'm not sure where to put them.

I just want a button that will clean say segment "1", then another for "2" and "3". Would I add these as a script, then make a helper button to run it?

Thank you for any help!