powershell -Command joins trailing argv into the script text, so $args was never populated and the path became a stray token (ParserError). An env var needs no quoting.
powershell -Command joins trailing argv into the script text, so $args was never populated and the path became a stray token (ParserError). An env var needs no quoting.