title: cross-platform scripting for windows, Linux, MacOS X
body: <p>I'm looking for cross-platform scripting (language) for windows, Linux, MacOS X.
  I'm tired of .bat / bash .<br/><br/>
  I would like to do things like for example ,,lock workstation'' at automatic login (I had this in X-Window but the solution was pretty ugly; now, I would like that on MS Windows and not that ugly :-) ). <br/>
  Generally: automate tasks.<br/><br/>
  Or would I be better off with Windows Scripting Host?<br/>
  PowerShell also comes to mind, but that's seems to Windows-only for my taste.
  Can languages like Python, Ruby, (Java?) interact (elegantly? sensibly?) with WSH?<br/><br/>
  Also things like DBUS, DCOM, etc come to mind as part of the picture.<br/><br/>
  Currently I use a mixture of Java, .bat, bash, Ruby, Scala; some VBA for Excel. Which sometimes gets pretty ugly.<br/><br/>
  I would like a cross-platform general solution with/using ,,native'' parts close to OS-specifics. Like e.g. Ruby driving some Windows-specific stuff (just a guess).
  <br/>What do You use?<br/>
  TIA</p>