How to Use Your Command History in Windows PowerShell
Windows PowerShell has a built-in command history feature that provides detailed information about the commands you’ve run. Like the Command Prompt, PowerShell only remembers your command history for the current session.