No! NI-Max is a configuration utility for NI hardware and software. It also provides several interactive interfaces to communicate and test these hardware devices but interactive means you can start them and generate different actions interactively but not automate things.
For that you would need some software programming. Depending on the communication interface this could be LabVIEW, LabWindows/CVI, Measurement Studio or Instrument Studio, or if you rather prefer to use some other non-NI software there are possibilities with Python, .Net and several others. It's theoretically even possible to do it directly from VBA in Excel but that is anything but trivial and you get pretty much no support from anyone with this nowadays.