We cannot have permissions to go to VRA / vRO and import and export Configuration element in prod.
So, I am trying to write a script to export and import the configuration elements but I am unable to do that.
Can anyone help me out to achieve this?
Have a look at the method
Server.getConfigurationElementWithPath in the API explorer
And then examine ConfigurationElement
Depending on what permissions you DO have, you should be able to get the content of the ConfigurationElement at least. If all you want is the content in Text/human readable form it's pretty straightforward to print that out