Q:

Trying to find files with a certain string in PowerShell

I am working on using powershell to find all files in a directory input by the user with a string input by the user.  Right now if you run my script, and enter in a file path with no sub-folders, then the script works fine, but if I add a folder with sub-folders then it gives me an access denied error.  I have tried a few different ways to code it but have had no success.  I need it to be able to search the parent directory as well as the child folders.  This is what I have right now.
#Sets the ability to execute the script
Set-ExecutionPolicy RemoteSigned

#Requests the loctation of the files to search
$Location = Read-Host 'What is the folder location of the files you want to search?'

#Sets the location based off of the above variable
Set-Location $Location 

#Sets the alias
Set-Alias ss Select-String 

#Requests the text to search for in the files
$File_Name = Read-Host 'Object Name?'

#Searches the files and returns the filenames
ss $File_Name * | Format-List FileName

#Sets location back to root
Set-Location C:

Write-Host "Press any key to continue ..."

$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

A:

Do not specify folders to Select-String.  Replace this line:
ss $File_Name * | Format-List FileName

with
Get-ChildItem -r | Where {!$_.PSIsContainer} | ss $File_Name

On V3 or higher you can simplify to:
Get-ChildItem -r -file | ss $File_Name

