Switching between free mode drive and force mode

Hello, I would like to know how can I switch between free drive and force mode in the teach pendant in the UR script?

Here’s the script manual. Just Ctrl+F “freedrive” and “force” and you’ll find details on the commands and how they work,