There are no weapon restrictions at all with that command, and the shock hammer works fine. I've used it while testing. I'm not sure why you're having trouble with it. Do you have any other weapon mods installed?
I tried removing the weapon mod i was using (Shitface's Weapon Re-Balance Mod)
Now things are worse my charater frezes in random positions like standing up and chrouching and I still can't shoot.