2
I know about the Invoke-History command (alias r) to recall and execute a previous command, e.g. r 29 but is there a way to recall command 29 but not execute it, i.e. put it into the current line you can edit before running? A bit like pressing up-arrow multiple times? With a long history, it's a right pain to get back to edit & run and earlier command.
I know I can do something like this to recall the text of a command:
h 56 | fl
And then copy & paste but with long commands wrapping over a line, you have to copy & paste into an editor, join up the lines and then copy & paste back. Right faff!
This doesnt match the criteria for your answer, but DOSKEY.exe works in PowerShell. Maybe it will help a little. http://www.computerhope.com/doskeyhl.htm
– Keltari – 2014-03-07T14:11:56.670