Transfer python program to slicer extension

Hello everyone. I am new to Slicer and I have coded the Python program that can store the Tag of a DICOM file as a csv file. Now I want to develop a simple slicer extension that will start running that Python program at the press of a button. How should I do it? Are there any good related resources I can refer to?

This tutorial would be a good place to start:

https://www.slicer.org/wiki/Documentation/4.10/Training#Developing_and_contributing_extensions_for_3D_Slicer