The minimum and most straightforward way to check if command exists and where the executable is, without spawning child_process.
By chatting or signing in you agree to the Terms and chat-message logging (revocable in History).