Hi , @Johnnyoc
Thanks for your quick response! First you can try to use the "Table1" as static table mane. Second , you can use the "Get tables" action after running the office script to get the table name.

And you can use this expression to extract the name of the table:
outputs('Get_tables')?['body/value']?[0]?['name']
If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance!
Best Regards,
Yueyun Zhang