1. To keep running the ping command, use a while loop and a shift register.
2. Notice the end of line constant, it's there to actually run the command. It is the equivalent of pressing the Return key after typing in the command in cmd.
3. Use the Match Regular Expression to get the IP address from the output of the cmd. This allows to get the IP address if the input is a domain name or URL.
4. The working directory is different for each scenario.