I Want to Add a Script to a TBX And Use It in ArcToolbox Using .py files .
for more information about those files please visit :
https://github.com/b-twice/arcgis-dynamictables
You cannot add directly add your Python script to arcgis toolbox. You need to open your toolbox first with ArcGIS then create a script. After that you can change the source the script execution using your Python Script
Create a script tool—ArcGIS Pro | Documentation
Hope it helps you,
Cheers