Sorry for misleading, I am not trying to use oascript myself, I found that the workflow I use is using it. Seen here: https://github.com/gharlan/alfred-github-workflow/blob/master/action.php#L74
The issue appears to be that oascript itself is messed up on my system, I was hoping someone here had seen this before.
Running the syntax you provided yields the same result.
$ osascript -e 'open location "https://google.com"'
osascript: can't open default scripting component.
Thanks for the reply.