Scripts based on API COM object are limited to Windows operating system. To have a universal solution, you have to use PHP API.