Cmd / k "command" how to store command in history?

call cmd / k "command" to execute command, how can I save the command I just executed into doskey / history? Just like I win+r > cmd > execute command, and then I can repeat the command with the up and down arrow keys.

Mar.12,2021
Menu