I added a python program to my toolbox that retrieves the S-parameter from NanoVNA-H and stores them either as S-parameter or Z-parameter in touchstone RI (real/imag) format. It would be easy to create also MA (magnitude/angle) format for Z-parameter.
Developed and tested on Linux, but should also work on Windows when you adapt the serial port name.
usage: nanovna_snp.py [-h] [-o [FILE]] [-p [PORT]] [--s2p] [-z]
optional arguments:
-h, --help show this help message and exit
-o [FILE], --out [FILE]
write output to FILE, default = sys.stdout
-p [PORT], --port [PORT]
connect to serial port PORT, default = /dev/ttyACM0
--s2p fetch also s21 parameter in addition to s11
-z, --format_z fetch s11 and calculate R +jX