Powershell script to extract report for processor queue length for last 20 days with their min, max and avg value for multiple windows servers(400 servers) and output in csv

Hi Ravi and welcome to the forum. Before we dig in to that I’d ask that you please format your code.
Please edit your original post and use the Preformatted Text button to format your code.
Guide to Posting Code - Redux