added bat action to sqlcommand lwrp