I may found it, the psm1 file stay for about 60 seconds at this line. BTW: onyl one time. If I run a second time the script it works like a charme.
Get-ChildItem -Path $PSScriptRoot -Include *.ps1 -Recurse | Foreach-Object { . $_.FullName }
Get-ChildItem -Path $PSScriptRoot -Include *.ps1 -Recurse | Foreach-Object { . $_.FullName }