How to make PowerShell add a new line after executing a command?

You can create custom prompt function like this:

Set-Content function:\prompt { 
  if($Host.UI.RawUI.CursorPosition.X -eq 0) {'PS>'} else{"`nPS>"}
}

How to test it:

write-host 'this is test' -nonewline