Modern PowerShell guesses the rest of your command while you type. The guess comes from your command history and shows up as grey text after the cursor; RightArrow accepts it. That’s fine, but it only ever shows one guess. Press F2 and you get a list instead.
The feature is called Predictive IntelliSense and lives in the PSReadLine module. F2 switches between the default InlineView and ListView. In the list you scroll through several matching commands with the arrow keys, and each line shows where the suggestion came from. If you like the list, make it permanent by adding this line to your PowerShell profile (notepad $PROFILE):
Set-PSReadLineOption -PredictionViewStyle ListView
When nothing grey appears at all, check the prediction source:
Get-PSReadLineOption | Select-Object -Property PredictionSource
None means predictions are off. Set-PSReadLineOption -PredictionSource History turns them on. Predictions need PSReadLine 2.1.0 or newer, ListView needs 2.2.0, and from 2.2.6 predictions are on by default. Windows PowerShell 5.1 can use the history predictor; plug-in predictors need PowerShell 7.2 or newer.
One key binding I’d add as well: Microsoft’s docs show Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function ForwardWord, which accepts just the next word of an inline suggestion when you only want part of it.
The caveat is the history behind it. PSReadLine keeps a history file per host under $Env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine, and predictions are built from that file. It tries to filter out secrets: lines containing words like password, token, apikey or secret are not saved. A password you typed as a plain argument to some tool without those words can still end up in the file, and later in a suggestion while someone watches your screen. If that happened, open the file and remove the line.
Further reading: Using predictors in PSReadLine (Microsoft Learn), about_PSReadLine (Microsoft Learn)