@nixCraft this is why I default to #PowerShell as my shell on every OS. The predictor system is awesome!
https://learn.microsoft.com/en-us/powershell/scripting/learn/shell/using-predictors?view=powershell-7.4
This article describes the features and usage of Predictive IntelliSense in PSReadLine.