When i run the npm run build for react project i am getting the error, please check below code

'REACT_APP_BUILD_ENV' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `react-csp dev && REACT_APP_BUILD_ENV='test' react-scripts build && gulp licenses`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersShubham JayswalAppDataRoamingnpm-cache_logs2022-03-22T13_44_53_411Z-debug.log

I am trying to build my code but when I run npm run build with react project getting every time error, stuck there don’t have an idea how to resolve that error, could please give me solution how to fix that error.

I am using Windows.