It turns out I installed OBS via flatpak, so OBS did not have access to the script I was trying to call. I put the script in the OBS sandbox and it works just fine!