The following construct demonstrates how the ASCII value of a char can be determined:
[byte][char]'q'
PowerShell does not have a specific literal-syntax for chars so that 'q' denotes a string. Thus, the 'q' needs first to be cast to a char before it can be cast to a byte.