Inspired from this article, I trying to made a simple script to post to Twitter from Powerbuilder. All you need is msxml2.dll which located at c:\windows\system32.
And also, you need to create a Twitter's account. Using an OleObject object, try this simple script: