CmdID / Commands
get-history
Display PowerShell command history. tldr-pages
On Windows
Display PowerShell command history. Note: This command can only be used through PowerShell.
Display the commands history list with ID
Get PowerShell history item by ID
Display the last n commands