Powershell Select String Recursive Formula Definition