The original post that I used as a reference to do this on my bunch of R620 and R720xd appears to be missing from search now. Regardless, I'm throwing up a list of options here with the same idea, even a ChatGPT generated option for those wanting to play around with the results.
This first link mentions the original reference I used (that domain is now down and for sale):
Here are a few more links that should work for the R620 and R720/R720xd:
In case those partially fail for your R710 and other Dell 11th Generation servers, try:
And here's that ChatGPT generated one, ymmv: