Yes the option to add custom script is available only in WHM.
Regarding blank page in your custom script it seems there is a syntax error or you are using PHP functions/syntax that are removed in PHP 7.2, Softaculous now runs on PHP 7.2 as cPanel has updated their 3rd party PHP binary to 7.2