Types/Escape.Sequence/cursorShapeUnderline.ps1

<#
.SYNOPSIS
    Cursor Shape Underline Escape Sequence
.DESCRIPTION
    Escape Sequence for Underline Cursor Shape
.NOTES
    This setting is sometimes ignored.
    
    Many terminals do not enable a blinking cursor.
.LINK
    https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
#>

param()
$e = [char]27
"$e[4 q"