Just as a suggestion, since many of your posts to this forum are either concerned with programmatic or command-line methodology, it may be good to highlight that aspect of the question...
"How do i change the colour depth through a COMMAND-LINE mechanism?"