linux/windows command handler