Dash function with character controller?

So i have a dash function i know it works because it use to use the lerp function and worked fine. but the needs of my game require that a character controller be used. what function would be the best to move my character from point A to Point b at a specified speed. Or is there a better way to lerp that takes into account the character controller?

i need the character controller so its not possible to dash through a wall

my attempt ended up like this but it does nothing

        if (dashnow == true && dashforward == true)
            {
            attackanimaton.SetInteger("Dashtype", 1);
            myplayer.Move(Vector3.forward * dashspeedstat * Time.deltaTime);
        }

Im gonna need the whole C# Script to help.