It should be possible to convert Cg to DX assembly and then cutnpaste this into a shader file for GameStudio. Check the options of that command-line compiler.
Also, if I remember correctly, RenderMonkey allows HLSL to ASM conversions.