The VPN software I use for work (IPSecuritas) requires me to turn off Back To My Mac to start it's connection, so I frequently turn off Back To My Mac in order to use my VPN connection (the program does this for me). I forget to turn it back on however and I'd love to know if there was something I could run (script, command) to turn it back on.
There is no supported way to do this. Having said that, you can do it using
The last line will list your iCloud user number. I think they are all 8 digit numbers, at least mine is.