How can I automatically queue when launching TF2?

In theory you could run the console command +OpenMatchmakingLobby Casual in the TF2 launch options, which would at least save you one click, but setting this as a launch option causes TF2 to crash on my PC. If anyone out there knows a way to get this to work, this might become a partial answer.