Roku, Plex and Automated script

I am trying to find someone that was able to play a movie/tvshow through a script. I want to run an automated script on HA to play a PLEX movie/show “also random would be cool” on my roku device. I just cant find anyone that has done it on a roku device.

I can get it to open the Plex app but it will not play a movie or tv show. All the disney and netflix apps I can get a show to play but not plex. Any advise or code for me to try?

Here is an example how disney works for me.

alias: Play Bluey On Living Room TV
  - service: remote.turn_on
    metadata: {}
    data: {}
      device_id: cede71f7dea1a5a8a758f90688dfe71e
  - service: media_player.play_media
      media_content_id: "291097"
      media_content_type: app
        content_id: c9b9104c-e334-457c-8c8a-5689de962a26
        media_type: episode
      device_id: cede71f7dea1a5a8a758f90688dfe71e
  - delay:
      hours: 0
      minutes: 0
      seconds: 25
      milliseconds: 0
  - condition: not
      - condition: state
        state: playing
        entity_id: media_player.living_room_roku
  - service: remote.send_command
      command: select
      device_id: cede71f7dea1a5a8a758f90688dfe71e
mode: single
icon: mdi:play-pause

ha ha, I asked you about how you got the Disney Content ID in July and now I’m trying to get movies playing in Plex… you just have the same problems before me… Did you figure out playing in plex?

This is what I use to get random TV episodes to play for my son.

service: media_player.play_media
  title: Paw Patrol
  media_content_id: >-
    { "library_name" : "TV Shows", "show_name": "Paw Patrol", "shuffle": "1",
    "maxresults": 1 }
  enqueue: replace
  media_content_type: EPISODE
  entity_id: media_player.plex_plex_for_android_tv_chromecast_google_tv
enabled: true