Backup / Restore Nvidia Control Panel Settings with NVWMI issue

Hello Nvidia Dev Team,

I am using Windows 10 VM on ESXi with Nvidia GRID.

Currently, i am using the following NVWMI api to save the Color settings and gamma settings:

wmic /namespace:nv path DisplayGrid where id=1 call saveGammaRamp filePath=“C:\ProgramData\NVIDIA Corporation\Drs\GammaRamp1.grg”

wmic /namespace:nv path DisplayGrid where id=1 call saveCSC filePath=“C:\ProgramData\NVIDIA Corporation\Drs\CSC1.cscg”

and to restore the settings:
wmic /namespace:nv path DisplayGrid where id=1 call setCSC filePath=“C:\ProgramData\NVIDIA Corporation\Drs\CSC1.cscg”

wmic /namespace:nv path DisplayGrid where id=1 call setGammaRamp filePath=“C:\ProgramData\NVIDIA Corporation\Drs\GammaRamp1.grg”

But, when i run the save script, it generates a save file for GammaRamp1 and CSC1. But when i ran the restore script, it does not restore the settings back.

Anyway tips on how to troubleshoot this issue?

Any assistance is MUCH appreciated.

Thank you!