How to press a button in a map

I have a button within a map that resets a bunch of destructibles - how do I go about making my gamemode script “press” it?

I’ve tried

[lua]game.ConsoleCommand("ent_fire button_reset use

but ingame it the console says “Command Blocked!” because apparantly ent_fire is illegal. Whats another method of doing it / getting around it?

I think you could search for the ent and fire it directly?

Use this Ents.FindByName to find your entity, then run Entity.Input on it.

That works <3