As a way of introduction, I have 4.5 Years of IT industry experience along with Extensive experience in Automation in the IT Processes. I have an advanced level of PowerShell knowledge, and I can assist you with this script.
I also have sound knowledge in SQL Server , T-SQL and RDBMS in general. As an experienced system admin I have created many Powershell scripts, functions , modules to automate various SQL queries.
I will create the powershell script within short time , that will query the specified table with query and will generate the file in the format specified by you. Once you are happy with the script I will schedule the script in Windows task scheduler.
Please ping me in chat , we will discuss further on the project.