Command Line Failed - Root User Problem?

I have a problem where if HA was started by systemctl start home-assistant@pi my command line switch gives me an error message in the log and the switch won’t turn on. If I stop the systemctl, and start is manually using $hass then the command line switch works no problem. The script is executable by anyone and is owned by the user pi, I have tried to add sudo to the beginning of the command line command, but it doesn’t help. The command works no problem from the terminal as well. I have a manual install, no venv. Any ideas? Is it a permissions issue?