How do I install an older plugin using the jenkins script console?

I’m trying to install a specific version of an older plugin from the groovy script console. I thought I could use this API call UpdateCenter (Jenkins core 2.320 API)

But no matter what version I pass to public UpdateSite.Plugin getPlugin(String artifactId, @CheckForNull VersionNumber minVersion) it always returns the latest version.

So I went and looked at the code… and yup, it basically always returns the newest version jenkins/ at 090779fb4e88f8105a1cde0e2eaca725e7b3966d · jenkinsci/jenkins · GitHub.

So is their an easy way to do this from script console? Should I file a bug issue in jira?