Thank you for reaching out to the Ansys Learning Forum, your patience is much appreciated.
Please note that Ansys products support Python and VB scripts for automation. Kindly go through the HFSS scripting guide available under the help menu for detailed information on how to use various commands. You can also record the script under the automation tab while doing certain operations on the tool which you can use as the initial script.
Alternatively, you can also access the online version of the HFSS scripting guide here – Ansys Electronics 2023 R1 – Welcome to HFSS Help.
Forum Rules & Guidelines - Innovation Space (ansys.com)