In case you know that you had written some code but you don’t know where it is, it might help if your Windows machine is indexing your PowerShell script files by their content too, not just by their properties.

Windows Search settings