If you download a newer virtualbox executable, then uninstall the old one and do the same steps again. That is all, now everytime you start virtualbox using start_virtualbox.bat it will start in a portable mode, the virtual machines we create will be saved to F:\myVMBOX inside your USB, and you can use the USB in any machine now, virtualbox will always find your virtual machines from your USB, but you have to always start virtualbox from start_virtualbox.bat.
If you want to uninstall virtualbox use the Control Panel or uninstall_virtualbox.bat (this is optional).
now everytime you want to start virtualbox use start_virtualbox.bat.inside F:\myVMBOX put the following files start_virtualbox.bat and uninstall_virtualbox.bat, you will find them inside the zip you just downloaded.inside F:\myVMBOX put the virtualbox exe we just downloaded ( VirtualBox-7.0.8-156879-Win.exe) and rename it to VirtualBox.exe.create a folder inside your USB/external drive or whatever, name it myVMBOX (ex.click on Download ZIP above to download the scripts needed.download or any newer or older version.if you have any installed virtualbox then uninstall it first.
This makes virtualbox works in a portable mode: