Alain,
I don't reall get *why* you want to do this, but:
you could write your own macro with exactly this script inside a custom bundle… you could just create a general LaTeX file that will include your new file and have that handled by the bundle…?
Dan