See how to view the versions here:
Also here is a third party article that guides you:
https://demiliani.com/2024/01/30/list-all-azure-functions-with-older-runtime-with-powershell/
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola