If you want to run Python code, there is a Run Python script action in PAD that supports Python 2. If you need any functionality that is available in later versions of Python, that won't work.
SQL scripts are also available via the Execute SQL statement action in PAD.
Other than that, I'm not quite sure what it is that you want - do you want to keep the Python script and simply launch it automatically via PAD, or instead do you want to replace it with a PAD flow? If you want to replace it, you will need to provide more details as to what the script is supposed to do in order for the community to be able to help you.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.