Make CharacterBody2D move to point up with BlendTree animations?

Godot Version

4.2.1

Question

I’m building an NPC system called the Actor class that is supposed to be scriptable for cutscenes (similar to RPG Maker), and it needs to be able to move at a certain speed to a certain point, complete with 4 way animations. How can I achieve this in code?
(I’ve looked this up, and can’t really find anything helpful.)