Given $A \in\mathbb{S}^n$ positive semi-definite matrix where
$$ \lambda_1 \geq \cdots \geq \lambda_{n-1} > \lambda_n $$
I am trying to come up with an algorithm that uses the Power Iteration Method such that given $\epsilon>0$ will find a vector such that
$$ \lambda_n \leq x^TAx \leq \lambda_n + \epsilon $$ where $$\lambda_n >0$$
In other words I am trying to get the eigenvector relating to the smallest eigenvalue of the matrix $A$.
I saw the following question referring to positive definite, however, since eigenvalues can be equal to zero, the methods suggested such as shifting the eigenvalues won't work.
Any help would be greatly appreciated