Convert Shader Script to HDRP

I wondered if it was possible to convert old shader scirpt to use at HDRP?,

With Better Shaders it is…

Thank for helping me, I have found an easier way to handle this problem

Hello. What way did you find?