Looking at the error it seems that you are running k6 run script.har but you should be running it with the JS script it produced not with the har file …
My bad, there was a typo, here is the command again and the result. I made a few conversion .js files from the .har file to keep an original and make versions with my edits.
@gary, judging by the error you’re getting, testscript.js doesn’t seem to contain valid JavaScript code… Instead, it’s contents seem exactly like the contents of your .har file So, it looks to me like you somehow overwrote the contents of your converted script (which k6 can execute) with the contents of the .har file (which it can’t directly execute). Please open the file in an editor and verify that you’re trying to run a valid JS script.