I want to use your Order Attributes in scripts/customizations. How may I get their values from the code?

I want to use your Order Attributes in scripts/customizations. How may I get their values from the code?

To get the Order Attributes values from the code, you may use the strings below:

$orderRepository = $objectManager->get('Magento\Sales\Api\OrderRepositoryInterface');
$order= $orderRepository->get();
$attr = $order->getData('');