With the rapid proliferation of non-dispatchable energy sources, the need for demand-side management (DSM) strategies has become crucial to ensure affordability and reliability for end-users. The application of various diversified DSM strategies in the microgrid energy management system (EMS) is gaining popularity. This paper aims to solve the energy management problem of the microgrid in conjunction with both customer-oriented and utility-oriented DSM strategies for the first time in the literature. In light of this, a stochastic EMS framework is developed to implement and analyze the flexible load shaping DSM strategy, price-based, and incentive-based demand response programs (DRPs) in the presence of non-dispatchable energy resources. Further, the flexible price-oriented load model is adopted for price-driven and incentive-driven DRPs to depict the realistic assessment of consumers’ sensitivity to market prices. The scenario construction approach is employed to address the stochastic nature of renewable power generation, market prices, and load demand. With the complexities as mentioned above, the problem needs to be solved with a powerful optimizer sufficiently to enhance energy efficiency and optimize energy utilization. Hence, the recently reported novel metaheuristic algorithm (Black Widow Optimization) is applied to solve the proposed MG energy management problem in the MATLAB environment. The IEEE-34 node distribution feeder-based MG network is modified to study the proposed algorithm's performance, and a detailed analysis of various techno-economic indices is presented. The obtained simulation results are compared with existing popular algorithms to prove the efficacy of the proposed algorithm in terms of convergence, computational time, an optimum solution and the real-time market bid prices were considered in analysis for day-ahead scheduling of microgrid network.