Connecting PowerShell with MySQL or MS SQL databases

How to start queries from PowerShell to MySQL or Microsoft SQL databases!