Spotifycmd is a command line tool (which even though is called "spotify_cmd.exe", is actually a Linux binary) that can control a running instance of Spotify (in Wine).