my powershell code work fine for first select statement- it generates csv file but its unable to generate csv for another select statement within same sql query. Please help