If you are referring to a cog railway, companies like Fleischmann manufacturer this stuff, but it is European based. They will do some ridiculous grades like 25%. I also have this system for G scale but I have not yet set it up. I have the rack rails and rack loco
I'm unsure of any US-based systems that have been made.
I was thinking of making a mountain in the center and running my loco into it like a tunnel with only one side. Storage instead of a shed type. My wife wondered about a incline being put in. Anything that would work cog or cable.
Just got off the phone conferencing wit ha few of my "so knowledgeable about railroads and modeling they make you sick" buddies. All recall seeing articles some years back in MRR magazine but none could recall the issue. so, I learned no more than I already knew.
So that being said, here's my best advice. Go to the link I have provided and ask someone that knows, because I don't have a clue.
As mentioned before, I, too, have seen first hand G-scale cog railways, but none smaller.