Connect DB for Custom files

Hi,I want to Connect DB in a Custom files.I include in my root file index.php

// configs
$RELATIVE_PATH = "adm/";
require_once ('adm/autoload.php');

// My scripts
require_once (‘moduls/cmd.library.function.php’);
require_once (“moduls/cmd.function.php”);Fatal error: Uncaught Error: Call to undefined function ExecuteRows() in E:\Endels\home\demo14\moduls\cmd.function.php:5 Stack trace: #0 E:\Endels\home\demo14\index.php(70): require_once() #1 {main} thrown in E:\Endels\home\demo14\moduls\cmd.function.php on line 5I use in v2018 befor v2020

// configs
$EW_RELATIVE_PATH = "adm/";
require_once ('adm/ewcfg14.php');
require_once ('adm/ewdbhelper14.php');
$dbhelper =& DbHelper();	
require_once ('moduls/cmd.library.function.php');

require_once (“moduls/cmd.function.php”);

I meant my scripts outside the phpmaker application folder. I am sharing a website and want to use the connection functions and other functions of the phpmaker framework for my scripts. I did this in early versions of phpmaker.
I gave an example above as I did before.

Refer to any Custom File and see the code at the top of the page, e.g.<?php namespace PHPMaker2020\myProjectName;// Session if (session_status() !== PHP_SESSION_ACTIVE) session_start(); // Init session data// Output buffering ob_start(); ?>

<?php include_once "autoload.php"; ?>// your code

I understood how it work. I like this additions.
Thanks you