The console is a JavaScript application. With scripts blocked, use the in-game /forgeguard commands instead.
/forgeguard