create a script named greet.ps1
$ vi greet.ps1
#/usr/bin/env pwsh
write-host "🤡"
edit crontab
$ crontab -e
add a line like below
* * * * * /usr/local/microsoft/powershell/7/pwsh /Users/hdformat/greet.ps1 >/tmp/stdout.log 2>/tmp/stderr.log
save and exit. (Mac OS X apply changed crontab immediatly)
$ crontab -e
crontab: installing new crontab
check if it works
$ tail -f /tmp/stdout.log
🤡
🤡
🤡
🤡
🤡