To root original BlueStacks vm you can use BlueStacks MultiTool. But I have more simpler solution. You can just download already rooted BlueStacks image.

There are two version of rooted BlueStacks available for download:

Remove your old BlueStacks and install rooted vm.

Enjoy!