Let $S \subset \mathbb{R}$ be a finite set and $f : \mathbb{R} \setminus S \to \mathbb{R} \setminus S$ be a continuous function which satisfies $f^n = id$ for some integer $n \ge 2$. Then $f$ admits a continuous inverse $f^{-1} = f^{n-1}$ i.e. it is a homeomorphism. We aim to show that $f$ can be 'decomposed into blocks' and that each 'block' is homeomorphically conjugated to some 'standard block'.
Decomposition into irreducible blocks. Let $C_f = \pi_0(\mathbb{R}\setminus S)$ denote the (finite) set of connected components of $\mathbb{R}\setminus S$. Then $f$ induces an action of the cyclic group $C_n$ on $C_f$. If $O \subset C_f$ is an orbit of this action, then denoting by $I_O$ the reunion of the intervals that are elements of $O$, we get that $f_O := \left. f \right|_{I_O} : I_O \to I_O$ is a homeomorphism which satisfies $(f_O)^k = id$ for some divisor $k$ of $n$. (Observe that $k$ is equal to the number of elements in $O$.) Hence $f$ can be described as the 'reunion' of its many 'blocks' $f_O$. It is therefore sufficient to study those functions $f_O$ (which acts transitively on their set of connected components).
Conjugation of irreducible blocks to standard maps. To simplify notations, write simply $f = f_O$, $I = I_O = \mathrm{dom}(f) = \mathrm{codom}(f)$ and also $k=n$. Now consider the set $I_n := \sqcup_{i=1}^n (i-1, i)$ and observe that there is a homeomorphism $h : I_n \to I$. The map $f_h := h^{-1} \circ f \circ h : I_n \to I_n$ satisfies $f_h^n = id$ and acts transitively on its set of connected components. In fact, we can choose $h$ so that $f_h$ sends the interval $(i-1,i)$ to $(i, i+1)$ (where $i$ is taken modulo $n$).
Description of the standard maps. The possible maps $f_h : I_n \to I_n$ are easily described. For $i=1, \dots, n-1$, each map $f_{h,i} := \left. f_h \right|_{(i-1,i)} : (i-1, i) \to (i, i+1)$ can be any homeomorphism chosen independently from one another. The only remaining restriction $f_{h,n} := \left. f_h \right|_{(n-1,n)} : (n-1, n) \to (0, 1)$ is chosen as $f_{h,1}^{-1} \circ \dots \circ f_{h,n-1}^{-1}$. Any such map satisfies $f_h^n = id$.