@Saiyad Rahim , From your description, I know you want to use Powershell to query SQL table and generate alert and notification according the cell value. if there's any misunderstanding, feel free to let us know.
As this is SCOM forum, we are not familiar with Powershell or SQL. We suggest to contact SQL and Powershell support team to get the Powershell script to accomplish what we want.
https://learn.microsoft.com/en-us/answers/topics/sql-server-general.html
https://learn.microsoft.com/en-us/answers/topics/windows-server-powershell.html
Afterwards, we can set up a custom monitor in SCOM with a Powershell Script. Here is an example for the reference:
https://blog.ctglobalservices.com/powershell/clm/example-of-setting-up-a-custom-monitor-in-scom-with-a-powershell-script-monitor-nic-teams-in-scom/
Note: Non-microsoft link, just for the reference.
To pass Powershell result to Alert Description, here is a link for the reference:
https://community.squaredup.com/answers/question/pass-powershell-result-to-alert-description/
Note: Non-microsoft link, just for the reference.
After the alert is generated, we can configure email notification refer to the steps in following link,
https://kevinholman.com/2012/04/27/opsmgr-2012-configure-notifications/
Note: Non-microsoft link, just for the reference.
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.