$GamerTag = "string" $GameId = '1262182609' $a = Invoke-RestMethod -Uri "https://games.roblox.com/v1/games/$GameId/servers/Public?sortOrder=Asc&limit=100" $PlaceId = $a.data[-1].id $Body = @{ "gameId"= $GameId; "placeId"= $PlaceId; "gamerTag"=$GamerTag; "isPartyLeader"= false; "isPlayTogetherGame"= false; "browserTrackerId"= 9223372036854776000; "isTeleport"= false; } Invoke-RestMethod -Method Post -Uri 'https://gamejoin.roblox.com/v1/join-game-instance' -Body $Body