Switch on and off usb ports programmatically on AGX

It seems that I might try the same method as

Copy realtek_hub_power_cycle.c to Jetson Nano
$ sudo apt-get install libusb-1.0-0-dev
$ gcc -o power_cycle realtek_hub_power_cycle.c -lusb-1.0
$ sudo ./power_cycle

https://forums.developer.nvidia.com/uploads/short-url/aSZujZz9LQUtN3aS8fuZnByxYtm.zip
without any modifications?

 sudo ./power_cycle 
[sudo] password for nvidia: 
[error]:open device 0bda:5411 fail.

would you advise which modifications will be required for AGX/NX?