Adding team and env filtering to the inventory script