The Get-MgDeviceManagementDepOnboardingSetting command is only available in the beta version, not in the 1.0 version. You may change your version by using the following command.
Select-MgProfile -Name "beta"
Refer the command details below.
Hope this helps.