Spectral multipliers without semigroup framework and application to random walks