Edit: I ended up getting it to work, thanks everyone.
function openGUIDirectly ( playerSource, res )
if ( hasObjectPermissionTo ( playerSource, "resource.bombshop.openGUIDirectly", true ) ) then
triggerClientEvent( playerSource, "gui_bombshopEnter", playerSource, 0)
else return end
end
addCommandHandler ( "bombshopgui", openGUIDirectly )
Although now I'm having a problem where after hit a bind for the command, either the window doesn't pop up unless you hit console or something that enables the cursor, or it pops up but the cursor is disabled.