2 People are following this question.
Powershell script works in Powershell but not as a SQL job Step
Export Sql server data to Excel in .xlsx format with powershell
How can I specify a stored procedure schema for the SMO StoredProcedures collection?
How can I be sure of the contents of a .sql file?