How do I use IPFS to work with a USB SSD?

On the windows operating system, IPFS stores the settings in the %userprofile%.ipfs folder. I would like to use the program in portable mode on a USB SSD, to be able to connect to the network from any computer. Which command should I use to run ipfs.exe in order for the profile folder to be loaded from the folder where the program is located?
In general, how can I set up relative paths for folders and files in portable mode?

And the second (probably stupid) question. Is it possible to use with socks5?