Plug the other end of the cable into a USB-A power source, like your Surface. Place your pen in the charging base. Wait for a moment, then remove the pen to start writing on your Surface.
Do bear in mind that this won’t feel completely like a laptop to type on ... you’ll find the Surface Pen 2 in a charging dock but it disappears when the keyboard is propped up.