figure powershell listing.svg

\documentclass{article} \title{powershell listing}
\usepackage{listings,xcolor}
\input{listings-styles} \input{listings-powershell} 
\begin{document}
\begin{lstlisting}[language=PowerShell,style=colorful]
Read-Host -AsSecureString | ConvertFrom-SecureString > "encrypted.txt"
[RegEx]::Match((Get-Date), '(\d+):(?<name>\d+)') | foreach { [PSCustomObject]@{
    FirstCaptureGroup = $_.Groups[1].value
    NamedCaptureGroup = $_.Groups["name"].value
}}
\end{lstlisting}
\end{document}

figure powershell collection.svg

\documentclass{standalone} \title{powershell collection}
\usepackage{graphbox}
\begin{document}
\includegraphics[align=c,width=2cm]{powershell logo} \hspace{1em}
\includegraphics[align=c]{figure powershell listing}
\end{document}