The Bombay High Court on Monday said the Maharashtra government had acted in an improper manner when it sent a letter to the Union Public Service Commission (UPSC) in November last year asking it to consider acting state DGP Sanjay Pandey's name for empanelment for the post of state Director General of Police.