Hi Sowmya,
Are you able to ping the scope at all or get a response with *IDN? when sending your SCPI commands? Are you sure you're saving them with the right formatting and syntax for the file path?
The save screenshots, I typically use TekScope Utility. https://forum.tek.com/viewtopic.php?t=140382
You'll need NI-VISA for the .NET drivers required to recognize your scope as well. https://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html
-Iris