On a Mac, I can extract the "Persistent ID" for a particular song from the "iTunes Music Library.xml" file and then use Applescript to play that song like so:
tell application "iTunes"
set thePersistentId to "F040658A7687B12D"
set theSong to (some track of playlist "Music" whose persistent ID is thePersistentId)
play theSong with once
end tell
On a PC, I can extract the "Persistent ID" from the XML file in the same way. The documentation for the iTunes COM interface says the function "ItemByPersistentId" has two parameters: "highID" (The high 32 bits of the 64-bit persistent ID) and "lowID" (The low 32 bits of the 64-bit persistent ID). but I can't figure out how to convert the hex-based value to the high and low 32-bit values the ItemByPersistentId function wants.
var thePersistentId = "F040658A7687B12D";
var iTunes = WScript.CreateObject("iTunes.Application");
var n = parseInt(thePersistentId);
var high = (do something with n?);
var low = (do something else with n?);
iTunes.LibraryPlaylist.tracks.ItemByPersistentId(high,low).play();