Added check pid running for windows