You can try to create the script like they have in this link: http://www.itninja.com/blog/view/scripting-skype-6-16-and-getting-rid-of-the-older-versions-1
Or you can try the uninstall via WMIC which is something like this: cmd="wmic product where "name like 'Skype%'" call uninstall /nointeractive"