Returns the DOSKey-style console command history (up arrow or F8).
Get-ConsoleHistory.ps1 [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-ConsoleHistory.ps1 |where CommandLine -like *readme*
Id CommandLine – ———– 30 gc .\README.md 56 gc .\README.md
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.