How can i run frontend area from magento2 backend area so that fronend events will fired for specific functionality?

How can i run frontend area code $this->appState->setAreaCode(‘frontend’);
from magento2 backend area so that frontend events will fired for specific code.