$\newcommand{\into}{\hookrightarrow}$<!--
-->It seems that if $Z$ has the indiscrete topology, then the evaluation map $ev_0 : Z^I \to Z$ has the right lifting property with respect to any map. That provides a simple counter-example to the question.

So I will assume for the remainder of my answer that $Z$ is Hausdorff. I will show that $Z$ is necessarily discrete if $ev_0 : Z^I \to Z$ has the right lifting property with respect to the inclusion $J \into I$, where $J={}]0,1]$ is a non-closed interval.

By the way, I do not know how to deal with more general classes of spaces, as the argument below uses very strongly the fact that the space $Z$ is generated by simplices, which are path connected spaces.


### Claim 0: If $f,g:J\to Z$ are homotopic maps, and $g$ extends to $I$, then $f$ also extends to $I$. ###

This follows immediately by applying the assumed right lifting property of $ev_0 : Z^I \to Z$ to any homotopy from $g$ to $f$, seen as a map $J\to Z^I$.


### Claim 1: Any map $J\to Z$ extends to a map $I\to Z$. ###

Any map $J\to Z$ is homotopic to a constant map, since $J$ is contractible. The statement now follows from claim 0.


### Claim 2: Any continuous map from a simplex to $Z$ is constant. ###

Since simplices are path connected, it suffices to show that any map $f:I\to Z$ is constant.

Consider the continuous map $h:J\to I$ given by
$$ h(t) = \frac 1 2 + \frac 1 2 \sin\Bigl(\frac 1 t\Bigr) $$
On any neighbourhood $U$ of zero in $I$ there exist points $a,b\in J\cap U$ such that $h(a)=x$ and $h(b)=y$.

Assume that $f:I\to Z$ is any map, and $x,y\in I$. By claim 1, the map $f\circ h$ extends to a continuous map $g:I\to Z$. By our choice of $h$, on any neighbourhood of zero in $I$ there exist points $a$, $b$ such that $g(a)=f(x)$, and $g(b)=f(y)$. Since $X$ is Hausdorff, it follows that $f(x)=g(0)=f(y)$.

### Conclusion: $Z$ is a discrete space. ###

Indeed, since $Z$ is $\Delta$-generated, any subset $S$ of $Z$ is open if the inverse image $f^{-1}(S)$ is open for any map $f$ from a simplex to $Z$. Claim 3 then implies that singleton subsets of $Z$ are open, i.e. $Z$ is discrete.