Getting query text from SSMS into Excel with PowerShell


 * https://www.sqlservercentral.com/articles/powershell/130717/
 * discussion: https://www.sqlservercentral.com/Forums/1717419/Getting-query-text-from-SSMS-into-Excel-with-PowerShell?Update=1#bm1929068