I think there was a command named GetHandleFromPid in FBSL, a basic language