controle_sql_file_in_moeder_file
C:\tmp\testsql\controle_sql_file_in_moeder_file.ps1
Get-ChildItem -Recurse -Name -Include *.sql -Exclude test* > dirlist.txt
Get-Content $(Get-ChildItem -Name -Include *moeder*.sql) | % { if ($_ -match "\\(.+\.sql)+") {$Matches[1]}} > moederlist.txt
Get-Content dirlist.txt | % { if ($_ -match "\\(.+\.sql)+") {$Matches[1]}} > dirlist2.txt
Compare-Object $(Get-Content moederlist.txt) $(Get-Content dirlist2.txt) -IncludeEqual