Force Spotlight to index a hidden directory
Spotlight doesn't index dot files or folders. A workaround is to rename the folder and then symlink it back to its original name:
mv ~/.local/share/powershell ~/powershell &amp;&amp; ln -s ~/powershell ~/.local/share/powershell

Make sure the destination of the move doesn't already exist.