The directory exists task can determine if a directory exists on a local or remote Windows machine.