Star Trek - Bridge Commander

In the game shortcut, right click on it and go to properties, under the shortcut tab go to Target:
add= "C:\Program Files\Activision\Bridge Commander\stbc.exe" -TestMode
(That's case sensitive). 
When you have -TestMode enabled, the cheat codes become active in the Single-Player and Quick Battle games. 
Shift-G = God Mode
Shift-R = Repairs Target
Shift-K = Damages targeted subsystem by 25%
Shift-Q = Gives your ship another 10 Quantum torpedoes (if your ship carries them)