Since this might be a XY type of problem I'll briefly describe my original issue.
I have a RPi 4, connected to my router via ethernet. I don't have a monitor and a keyboard so I can only access it through SSH. I wanted to set the Pi up as a wireless access point for my network so I followed this guide https://www.raspberrypi.org/documentation/configuration/wireless/access-point-bridged.md
After the last reboot, I can no longer access it through SSH (and the access point doesn't work either but that doesn't matter for now). It doesn't show up as a connected device on my router either.
Normally this wouldn't be a problem. I'd just plug the SD card into my computer and change the relevant configuration files to reset what I did, but I'm running Windows and I can't open the ext4 partition.
I have tried other methods including installing Linux in a VM and trying to mound the SD card but I wasn't successful so now I have a different idea.
Since the boot partition is FAT32, I can open it just fine on my PC so I'm thinking there must be a way to write a command somewhere that would run on boot. I could write a script to modify the configuration files on the ext4 partition to regain SSH access. Is there a way to do this?