Best way to run Shell commands on VirtualBox Guest
Finally got it working after about 8 hours of trying different things:

VBoxManage guestcontrol "vmname" run /bin/sh --username usr --password pass --verbose --wait-stdout --wait-stderr -- -c "echo test"


Hope this helps someone else!