Local check on windows not being picked up

it is, actually. All it’s doing is running sqlcmd as shown above. Like I said, changing it to a .bat file doesn’t work, either. This is the output if I run the script manually. It’s the same whether it’s a .ps1 or .bat file

PS C:\check_mk\local> .\checkmk_backup_alert.ps1
P _sqlserver_backups_SVWCHI6PSQL1_DBA_full minOld=6598.87;10080;11520 Full backup for database DBA last occurred 4.58255 days (109.981 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_master_full minOld=194.233;10080;11520 Full backup for database master last occurred 0.134884 days (3.23722 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_model_full minOld=194.217;10080;11520 Full backup for database model last occurred 0.134873 days (3.23694 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_msdb_full minOld=194.217;10080;11520 Full backup for database msdb last occurred 0.134873 days (3.23694 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_ReportServer_full minOld=6598.68;10080;11520 Full backup for database ReportServer last occurred 4.58242 days (109.978 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_ReportServer_log minOld=44.2167;=120;300 Log backup for database ReportServer last occurred 0.736944 hours ago.
P _sqlserver_backups_SVWCHI6PSQL1_SentryOne_full minOld=6595.47;10080;11520 Full backup for database SentryOne last occurred 4.58019 days (109.924 hours) ago.
P _sqlserver_backups_SVWCHI6PSQL1_SQLdmRepository_full minOld=6589.23;10080;11520 Full backup for database SQLdmRepository last occurred 4.57586 days (109.821 hours) ago.