Context
The problem here is about the characterization of positivity for real or complex valued functions: $$\sigma(f)\geq 0\iff\sigma(f(x))\geq 0\text{ for all }x\in X\iff f(x)\geq 0\text{ for all }x\in X$$
The point is that the first characterization reflects its intrinsic properties allowing to apply general results in the study of positive operators as integrals...
Problem 0
Let $A$ be an algebra with identity and $\Omega$ a plain space.
Consider the algebra of functions:
$$\mathcal{F}:=\{F:\Omega\to A\}$$
together with pointwise operations.
Is it true that the following characterizations of positivity are equivalent: $$\sigma(F)\geq 0\iff\sigma(F(\omega))\geq 0\text{ for all }\omega\in\Omega$$ where $\sigma(F)$ is the spectrum of $F$ in $\mathcal{F}$ whereas $\sigma(F(\omega))$ the spectrum of $F(\omega)$ in $A$?
Problem 1a
Now, let $B$ be a Banach algebra with identity.
Consider the (Banach) algebra of bounded functions:
$$\mathcal{B}:=\{F:\Omega\to B:F\text{ bounded}\}$$
again with pointwise operations.
(Note that $F$ is not necessarily continuous.)
Is it still true that the characterizations of positivity are equivalent:
$$\sigma(F)\geq 0\iff\sigma(F(\omega))\geq 0\text{ for all }\omega\in\Omega$$
where $\sigma(F)$ again is the spectrum of $F$ in $\mathcal{B}$ whereas $\sigma(F(\omega))$ the spectrum of $F(\omega)$ in $B$?
(Here, a function is invertible iff it has a bounded inverse!)
Problem 1b
Next, let $X$ be also topological space.
Consider the algebra of continuous functions:
$$\mathcal{C}:=\{F:X\to B:F\text{ continuous}\}$$
again with pointwise operations.
(Note that $F$ is possibly unbounded.)
Is it still true that the characterizations of positivity are equivalent:
$$\sigma(F)\geq 0\iff\sigma(F(x))\geq 0\text{ for all }x\in X$$
where $\sigma(F)$ again is the spectrum of $F$ in $\mathcal{C}$ whereas $\sigma(F(x))$ the spectrum of $F(x)$ in $B$?
(Here, a function is invertible iff it has a continuous inverse!)
Problem 2
Finally, consider the (Banach) algebra of bounded continuous functions:
$$\mathcal{BC}:=\{F:X\to B:F\text{ bounded and continuous}\}$$
again with pointwise operations.
Is it still true that the characterizations of positivity are equivalent:
$$\sigma(F)\geq 0\iff\sigma(F(x))\geq 0\text{ for all }x\in X$$
where $\sigma(F)$ again is the spectrum of $F$ in $\mathcal{BC}$ whereas $\sigma(F(x))$ the spectrum of $F(x)$ in $B$?
(Here, a function is invertible iff it has a bounded and continuous inverse!)
Due to the pointwise structure it formally holds: $$\sigma(F)=\bigcup_{x\in X}\sigma(F(x))$$
The difficulties arise as soon as additional requirements are tied upon the functions:
0) The formal inverse exists.
1a) The formal inverse is not necessarily bounded. (See below!)
1b) The formal inverse is continuous due to the Neumann series. (See Contuity of inversion!)
2) The formal inverse is again continuous but not necessarily bounded.
Especially for complex valued functions it holds: $\sigma(f(x))=f(x)$
Consider the bounded function: $$f:(0,1]\to\mathbb{R}:x\mapsto x$$ Then zero does not belong to its range but its formal inverse is unbounded: $$f^{-1}:(0,1)\to\mathbb{R}:x\mapsto \frac{1}{x}$$