If you are willing to search around, a power modulation (potentiometer) based solution would be your best option.
this would be the most ideal solution to your problem. I suggest you just get a DAC since they're fairly cheap and they come with a variety of input and output options (depending on what DAC you get) and use an XLR based input because mics that use phantom power will always get better quality audio input than USB based ones. that's just how the USB port works (this is why a lot of consumer grade USB devices come with software or automatic drivers that handle active and low power states to prevent them from being 'ejected' by Windows, ex: Xbox Controllers don't need to be unplugged from your PC because Windows automatically detects whether you are actively using it or not) If your device is USB based and you put a power switch on it, then Windows will almost always detect that device as being 'ejected' from the USB port because power has been cut off.