'-FollowRelLink not availalble in powershell 5.1

I am trying to get a list of users from invoke-restmethod but there is a limit of 100 users so only 100 of them come back.I researched a little bit and found out that a -followrellink parameter can be used with the invoke-restmethod but this parameter is avaialable only in 7.1 and not in 5.1 so i am not able to come up with a way around this. LMK if u need anything. P>S: this is my first question ever asked on this site and i am new to powershell.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source