Copy the TabExpansion2() function to your $profile file
A modified version of Thotaz's answer that changes PowerShell's auto completion behavior to act like bash
- Replaces backslashes to forward slashes
- Replaces trailing backslashes at the end of directories to forward slashes
- Removes
./or.\if the completion took place in the 2nd or later arguments