You'd need to use the Text command

It should look something like this

Code:
<Hotkey Ctrl F>
	<SendLabel w2>
		<Text /follow player1>
		<Key Enter>
Depending on how the entering of commands works in the game, you may need to add an enter first and a wait command before the second enter.

Code:
<Hotkey Ctrl F>
	<SendLabel w2>
		<Key Enter>
		<Text /follow player1>
		<wait 100>
		<Key Enter>