I think we can create mock script which would open port and sleep 10 seconds. It would be portable between linux and windows. However, any portable shell command would be good enough.