Normally you enter either of the following in order to jump to line #123 in command mode:
123G
123gg
You just need to find a key to map your new command to (I would recommend using the leader key, which was created for exactly this purpose):
noremap <LEADER>G G:YourCommand<CR>
noremap <LEADER>gg gg:YourCommand<CR>
" Now you can type 123\G instead (assuming you
" have not changed your default leader key)
Or, you can overwrite the existing key (not recommended, as it might mess up other scripts):
noremap G G:YourCommand<CR>
noremap gg gg:YourCommand<CR>