Open Music or iTunes

One approach is to use either an IF/THEN or Switch Action based on the macOS version. For an example, see: