This thread can now be ignored, it was a simple error of not specifying the section I wanted the script to write in the ini file as per Help:
Code:
writeini -n <inifile> <section> <item> <value>