Setting
[Menu]
bUseConsoleHotkeys=1
in your StarfieldCustom.ini will let the game load 'StarfieldConsole.ini' where you can put hotkeys for console commands, as well as [Macros] but things become a little trickier with that one, a hotkey example (in StarfieldConsole.ini)
[Hotkeys]
Ctrl-B=tgm;tcl;workshop
Pressing ctrl+b executes all 3 console commands