I've 'appsrv/newrequest.php' inside joomla root dir.

How do i call newrequest.php without needing joomla template but using joomla framework vars?

Removing the row below will output the php script but no use of joomla vars?

defined('_JEXEC') OR defined('_VALID_MOS') OR die( 'Restricted access' ); //security reason

I attempted to utilize a blank template: http://mysite.com/index.php?option=com_content&view=article&id=153&Itemid=40&template=blank

and here this content of index.php from the blank template:

<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
include('../cgi-bin/appsrv/epr/newrequest.php');
?>

the technique with template works, but it is harmful to because I've many scripts which means I must create for each script - another template...

Can there be every other method?