use  to dot source core.ps1, instead of (split-path System.Management.Automation.InvocationInfo.mycommand.path)