Get-Content (Get-PSReadlineOption).HistorySavePath | Select-String -Pattern "Invoke-MyCommand"

piping it into the more command can be benificial

Related

Where is the command history kept?