I'm using the command:
Get-ChildItem -Path "C:\*" "*.ps1" -Name -Recurse
To return a list of PowerShell scripts on my drive. However, it's returning .pdf, .docx, and .py (among others), as well as the .ps1 files. The list isn't the full list of files on the drive, so it has filtered some. The files that it returned that it shouldn't have, have no connection to PowerShell, even in the body of the document.
Does anyone know what's gong wrong?