

I am very sorry to remind everyone about the existence of Visual Basic, but it has:
- VbCrLf
- VbNewLine
- ControlChars.CrLf
- ControlChars.NewLine
- Environment.NewLine
- Chr(13) & Chr(10)
And I know what you’re asking: Yes, of course all of them have subtly different behavior, and some of them only work in VB.NET and not in classic VB or VBA.
The only thing you can rely on is that “\r\n” doesn’t work.
Running
poweroff
is one of the correct ways on anything Systemd (details). If that doesn’t work then something is broken.If you haven’t done so already try looking into the journal.
sudo journalctl -b -1 -e
will take you to the end of the log for the last boot.